aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Capture Browser language preference using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Capture Browser language preference using javascript" Watch "Capture Browser language preference using javascript" New topic
Author

Capture Browser language preference using javascript

Jyoti Aggarwal
Ranch Hand

Joined: May 26, 2009
Posts: 33
Hi I need to capture Browser language preference using javascript. I have tried few thing like



but no matter what is the language selected in the browser it always returns [en-us]. Please help
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6


It might read the system and not browser

You might have to look at the data sent to the server.

Eric
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Capture Browser language preference using javascript