I'm thinking that for the web theme we won't be using this file, as the server should pick up the index.$LANG.html file directly.
However, for the phone theme, we'll need this, and it'll need some JavaScript code to:
- Read the value from the global window.navigator.language JS object
- Load the appropriate index.$LANG.html page according to the window.navigator.language value
Looks good to me as a starting point.
I'm thinking that for the web theme we won't be using this file, as the server should pick up the index.$LANG.html file directly.
However, for the phone theme, we'll need this, and it'll need some JavaScript code to: navigator. language JS object navigator. language value
- Read the value from the global window.
- Load the appropriate index.$LANG.html page according to the window.