I determine the current browser locale using this API:
var language = window.navigator.userLanguage || window.navigator.language;
This returns “fr-FR” in IE, but it only returns “fr” in Chrome (and similarly for other locales).
Is there any other API that will return "fr-FR" in chrome? We rely on this to download the appropriate culture files.
javascript google-chrome locale
Amar
source share