Accept a list of languages

I would like to respond to Accept_Language, which the browser sends to the website.

Does anyone know where I can get a reliable list of all available Accept_Languages ​​that a browser can send to a website?

Many thanks!

+8
content-negotiation
source share
2 answers

IANA Subtitle Registry Register Page

This is the official place where you will find all submissions available for use in language tags.

W3 said it was an authoritative list. In addition, from the link below, there is much more information that needs to be presented, including descriptions and other ways to understand how people label themselves.

http://www.w3.org/International/techniques/server-setup#multiviews

+10
source share

The IANA language substrate registry page is certainly the right answer, but the list is a little tricky to parse.

I found this github repository that has several scripts for analyzing it and a set of ready-to-use JSON objects that you can use in your projects:

https://github.com/mattcg/language-subtag-registry

It seems like the author updates the repo every time the IANA list changes.

+3
source share

All Articles