I have a requirement where I need to check for the language configured on a browser. I use
var userLang = (navigator.language) ? navigator.language : navigator.userLanguage;
to check for the browser language.
This works fine on Firefox and chrome etc.
The problem arises on Internet explorer. When I debugged the javascript [using alert() :-)] the language was shown as en-EN eventhough i configured the browser with ge-GE.
Can anyone provide a solution for this.