Currently when a user visits the site, we determine the default language by checking and window navigator language.
This is better than just hard coding a default, since it checks at the language of the browser, which probably is the same as the language of the user.
However, this is not always the case. But since we don't have access to accept headers in javascript, this information has to come from the server.
Thus we should provide a facility to set the language programmatically, but only on first load.
Currently when a user visits the site, we determine the default language by checking and window navigator language.
This is better than just hard coding a default, since it checks at the language of the browser, which probably is the same as the language of the user.
However, this is not always the case. But since we don't have access to accept headers in javascript, this information has to come from the server.
Thus we should provide a facility to set the language programmatically, but only on first load.