What are the most used Accept-Languages ​​in the HTTP header?

I am building a website and I want to use the Accept-Language header in HTTP to help the visitor find their language. However, I am having a hard time finding statistics on the use of Accept-Language.

  • Will most visitors have something set as Accept-Language? Some places say things like "most modern browsers support Accept-Language", but does anyone have an overview of some browser versions that support it? And generally, the browser language will be set as the default Accept-Language unless the user actively changes their own Accept-Language settings? I think most people don't change these settings, but that doesn't mean that the Accept-Language remains empty?

  • Does anyone have statistics for the most commonly used language codes set inside Accept-Language? I can make a mapping system to map them to my site languages, but I also have a problem to find good statistics on most of the codes used. This will help you learn a lot about how to make this work better!

Thanks in advance!

+3


source to share


2 answers


As Oswald said, browsers set this by default to the language used by the browser's user interface. So no, the default is not empty, it is something like "en-US, en".

The only numbers I found are at https://panopticlick.eff.org/results?#fingerprintTable . This page checks the amount of information contained in HTTP requests. On the test results page, after clicking "Show full results for fingerprint", for different pieces of information it shows its frequency in the column "one in x browsers has this value".

The HTTP_ACCEPT Headers line displays the frequency of the combination of some of the Accept header values ​​specified by the browser. For example, it says that one out of 5.25 browsers sends the value "text / html, /; q = 0.01 gzip, deflate, br en-US, en; q = 0.5". Unfortunately, this value is a concatenation of the Accept (somewhat separated), Accept-Encoding, and Accept-Language header values, with the "br" being thrown away for a good estimate.



As I wrote before, when I experimented with panopticlick, it showed "one of 5.25 requests" for "en-US, en". This value is one of the most common, if not the most common. One of 295.2 requests only had "en-US", one of 547.18 requests only had "en", and one of 1076.94 requests had "en, en-US" (which should have the same consequences as and "en" so it doesn't really make sense to use it).

By changing only the configuration of the adopted languages, we can output the frequency of the languages, as seen with panopticlick. Of course, the more direct route is to simply write to them and ask them about the table. I'm sure the panopticlick kit sample is not representative of the entire web, but at least this is a start.

+1


source


Browsers send the Accept-Language header field out of the box. By default, it prompts for the same language that is used for the browser user interface.



+2


source







All Articles