I'm trying to make my website load different js files based on users languages. Possible?
I got this javascript application: test.js <- inside this i can define the language (default eng)
So that, i would like to recreate test.js and name it like test-it.js test-es.js ecc.
In my index the script is loaded as usual:
<script type="text/javascript" src="http://mysite.com/test.js"></script>
Is it possible to setup an if/else condition that detect browser language and load the right js app?
Thanks, Gio