Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 751871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:43:01+00:00 2026-05-14T14:43:01+00:00

Does anyone know how to obtain the browser culture from Firefox and Google Chrome

  • 0

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 application’s 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 snippet of code:

var browserCulture = this.clientInformation.browserLanguage;

Any info would be great!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T14:43:01+00:00Added an answer on May 14, 2026 at 2:43 pm

    The following properties exist on the navigator object (which can also be known as clientInformation on IE but there’s no reason ever to use that name):

    • language (non-IE, browser install language)
    • browserLanguage (IE, browser install language)
    • userLanguage (IE, user-level OS-wide language setting)
    • systemLanguage (IE, OS installation language)

    But! You should never use any of these properties! They will be the wrong language in many cases.

    None of them reflect the language settings the user actually gets to configure in the browser’s ‘preferred languages’ UI, and they are difficult-to-impossible for users to change. You will cause big frustration by using any of these values without an additional easy manual way to switch languages.

    The correct place you should sniff to decide what language to use by default, as configured by the normal browser UI, is the Accept-Language header passed to your server in the HTTP request. This is a ranked list of preferred languages from which you can pick, and it’s what ASP.NET uses to guess an automatic client Culture, if you use that.

    Unfortunately, this property is not available from JavaScript!

    What you typically do is use your server side to parse the Accept-Language header and choose a single appropriate language to use from it. In ASP.NET you can get a pre-sorted list from HttpRequest.UserLanguages and pick the first that you like.

    You then spit that language name out into a <script> element to pass the language information to the client side.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im using iphone sdk 3.1.2 Does anyone know how to programatically obtain the name
Does anyone know how I can obtain latitude and longtitude from the Country Name
Does anyone know how I can, in platform-independent C++ code prevent an object from
Does anyone know where or how to obtain a C++ example to create iPhone
Does anyone know if there is a function to obtain the server's time zone
Does anyone know how to programmatically obtain the server version number under JBossAS 5.1?
Does anyone know a resource where we can obtain FREE C++ libraries for MATLAB
This is a long shot, but does anyone know of an algorithm for estimating
Does anyone know how to add a generic principal to the HTTPContext from the
Does anyone know how to obtain the path to the current directory when running

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.