Is there anyway by which we can get the IE browser language
I tried navigator.lanuage , navigator.userLanguage etc...nothing works :( .
Is there anyway by which we can get the IE browser language
I tried navigator.lanuage , navigator.userLanguage etc...nothing works :( .
You probably are looking for Accept-Language
The Accept-Language request-header field is similar to Accept, but restricts the set of natural languages that are preferred as a response to the request.
An example could be like this:
$.ajax({
url: "http://abcd.com",
dataType: 'jsonp',
success: function(headers) {
language = headers['Accept-Language'];
//..........
}
});
Also check How to getting browser current locale preference using javascript?