Jump to content

Recommended Posts

Posted

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?

Posted

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".

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...