Getting browser culture using javascript

Posted by The Sheek Geek on Stack Overflow See other posts from Stack Overflow or by The Sheek Geek
Published on 2010-04-20T20:02:08Z Indexed on 2010/04/20 20:13 UTC
Read the original article Hit count: 323

Does anyone know how to obtain the browser culture from firefox and google chrome using javascript? Note: This is an asp.net 3.5 web application.

The requirement is to try and set the applications display culture based on the browser culture. I have found very few bits and pieces of information for the other browsers but they do not seem to work.

I am able to get it in IE with the following snipit of code:

var browserCulture = this.clientInformation.browserLanguage;

Any info would be great!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about culture