[BNM] browser language codes

David Pashley david at davidpashley.com
Mon Jun 1 16:59:26 BST 2009


On Jun 01, 2009 at 16:43, AndrewGill73 at gmail.com praised the llamas by saying:
> Hello,
> 
> I'm working on a web app that captures a user's browser language settings
> using JavaScript.
> 
> I'm struggling to find a list of all the languages. For example, "en-us"
> meaning U.S english, i think "ru" is Russian.
> 
> Any ideas where i can find a complete list?
> 
> 
> p.s. The ideal would be the browser code and the corresponding ISO country.
> 
http://en.wikipedia.org/wiki/Language_code
http://en.wikipedia.org/wiki/IETF_language_tag

It's basically <ISO-639-1>-<ISO-3166>. You can have any combination of
language and country/region. en-UK would be English as spoken in the
Ukraine. es-US would be spanish spoken in USA. 

http://en.wikipedia.org/wiki/ISO_639-1
http://en.wikipedia.org/wiki/ISO_3166-1

In particular, http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 and
http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes.

-- 
David Pashley
david at davidpashley.com
Nihil curo de ista tua stulta superstitione.


More information about the BNMlist mailing list. Powered by Wessex Networks