Oleg Posted December 2, 2014 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?
Philipp Posted December 2, 2014 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
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