Oleg Posted December 2, 2014 Share Posted December 2, 2014 I have a multilingual website. I need to connect 3 different javascript for own language. Each language must match your javascript. But I have a single template for all languages. How can this be done? Link to comment Share on other sites More sharing options...
Philipp Posted December 2, 2014 Share Posted December 2, 2014 Include the name of the language when you include the JS file? <script src="js/<?=$language->title;?>-scripts.js"/></script> Code not tested. This should output something like "en-scripts.js". 1 Link to comment Share on other sites More sharing options...
Oleg Posted December 3, 2014 Author Share Posted December 3, 2014 Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now