Last update 12/29/97 by christw@microsoft.com
The IANA language registry is at ftp://ftp.isi.edu/in-notes/iana/assignments/languages/.
The following table is used by Internet Explorer to translate between a Windows Locale ID (LCID) and RFC1766 style language identifiers which are used for the HTML LANG attribute and for the Accept-Language header in http requests. The Accept-Language header defaults to the current System User Locale ID but can be overridden by user. Note that Internet Explorer itself does not make use of a translation from RFC1766 code to LCID except for Han disambiguation. But the function is provided in an export of MLANG.DLL.
The OS columns in the table denote whether the locale is available on a limited set of OS versions. BiDi = Bi-directional Enabled versions, Asian=Asian enabled versions of the OS, usually available only on the localized version matching the Locale.
Translations are not bijective and thus do not round trip. Since the set of possible RFC1766 language-country combinations is much larger than available Windows-supported LCIDs, not all RFC1766 combinations can be expressed. For untranslatable RFC1766 strings IE tries to match the language part only (first two letters) and if it still finds no match will fail.
Primary Language | Locale Name | LCID | Win95 |
NT 4.0 |
Accept-language string |
Notes |
---|---|---|---|---|---|---|
Afrikaans | Afrikaans | 0436; AFK | x |
x |
af |
|
Albanian | Albanian | 041c; SQI | x |
x |
sq |
|
Arabic | Arabic (Standard) | 0001 | ar | |||
Arabic | Arabic (Saudi Arabia) | 0401; ARA | BiDi |
BiDi |
ar-sa |
|
Arabic | Arabic (Iraq) | 0801; ARI | BiDi |
BiDi |
ar-iq |
|
Arabic | Arabic (Egypt) | 0C01; ARE | BiDi |
BiDi |
ar-eg |
|
Arabic | Arabic (Libya) | 1001; ARL | BiDi |
BiDi |
ar-ly |
|
Arabic | Arabic (Algeria) | 1401; ARG | BiDi |
BiDi |
ar-dz |
|
Arabic | Arabic (Morocco) | 1801; ARM | BiDi |
BiDi |
ar-ma |
|
Arabic | Arabic (Tunisia) | 1C01; ART | BiDi |
BiDi |
ar-tn |
|
Arabic | Arabic (Oman) | 2001; ARO | BiDi |
BiDi |
ar-om |
|
Arabic | Arabic (Yemen) | 2401; ARY | BiDi |
BiDi |
ar-ye |
|
Arabic | Arabic (Syria) | 2801; ARS | BiDi |
BiDi |
ar-sy |
|
Arabic | Arabic (Jordan) | 2C01; ARJ | BiDi |
BiDi |
ar-jo |
|
Arabic | Arabic (Lebanon) | 3001; ARB | BiDi |
BiDi |
ar-lb |
|
Arabic | Arabic (Kuwait) | 3401; ARK | BiDi |
BiDi |
ar-kw |
|
Arabic | Arabic (U.A.E.) | 3801; ARU | BiDi |
BiDi |
ar-ae |
|
Arabic | Arabic (Bahrain) | 3C01; ARH | BiDi |
BiDi |
ar-bh |
|
Arabic | Arabic (Qatar) | 4001; ARQ | BiDi |
BiDi |
ar-qa |
|
Basque | Basque | 042D; EUQ | x |
x |
eu |
|
Bulgarian | Bulgarian | 0402, BGR | x |
x |
bg |
|
Belarusian | Belarusian | 0423, BEL | x |
x |
be |
|
Catalan | Catalan | 0403; CAT | x |
x |
ca |
|
Chinese | Chinese | 0004 | zh | Ambiguous Trad/Simp? | ||
Chinese | Chinese (Taiwan) | 0404; CHT | Asian |
Asian |
zh-tw |
|
Chinese | Chinese (PRC) | 0804; CHS | Asian |
Asian |
zh-cn |
|
Chinese | Chinese (Hong Kong) | 0C04; ZHH | Asian |
Asian |
zh-hk |
|
Chinese | Chinese (Singapore) | 1004; ZHI | Asian |
Asian |
zh-sg |
|
Croatian | Croatian | 041a; HRV | x |
x |
hr |
|
Czech | Czech | 0405; CSY | x |
x |
cs |
|
Danish | Danish | 0406; DAN | x |
x |
da |
|
Dutch | Dutch (Standard) | 0413; NLD | x |
x |
nl |
|
Dutch | Dutch (Belgian) | 0813; NLB | x |
x |
nl-be |
|
English | English | 0009 | en |
|||
English: | English (United States) | 0409; ENU | x |
x |
en-us |
|
English: | English (British) | 0809; ENG | x |
x |
en-gb |
|
English: | English (Australian) | 0c09; ENA | x |
x |
en-au |
|
English: | English (Canadian) | 1009; ENC | x |
x |
en-ca |
|
English: | English (New Zealand) | 1409; ENZ | x |
x |
en-nz |
|
English: | English (Ireland) | 1809; ENI | x |
x |
en-ie |
|
English | English (South Africa) | 1c09; ENS | x |
x |
en-za |
|
English | English (Jamaica) | 2009; ENJ | x |
x |
en-jm |
|
English | English (Caribbean) | 2409; ENB | x |
x |
|
Bug: No RFC1766 assigned |
English | English (Belize) | 2809; ENL | x |
x |
en-bz |
|
English | English (Trinidad) | 2c09; ENT | x |
x |
en-tt |
|
Estonian | Estonian | 0425, ETI | x |
x |
et |
|
Faeroese | Faeroese | 0438, FOS | x |
fo |
||
Farsi | Farsi | 0429; FAR | fa |
|||
Finnish | Finnish | 040b; FIN | x |
x |
fi |
|
French | French (Standard) | 040c; FRA | x |
x |
fr |
|
French | French (Belgian) | 080c; FRB | x |
x |
fr-be |
|
French | French (Canadian) | 0c0c; FRC | x |
x |
fr-ca |
|
French | French (Swiss) | 100c; FRS | x |
x |
fr-ch |
|
French | French (Luxembourg) | 140c; FRL | x |
x |
fr-lu |
|
Gaelic | Gaelic (Scots) | 043c; GDH | gd |
|||
Gaelic | Gaelic (Irish) | 083c; GAE |
|
Bug: No RFC1766 assigned | ||
German | German (Standard) | 0407; DEU | x |
x |
de |
|
German | German (Swiss) | 0807; DES | x |
x |
de-ch |
|
German | German (Austrian) | 0c07; DEA | x |
x |
de-at |
|
German | German (Luxembourg) | 1007; DEL | x |
x |
de-lu |
|
German | German (Liechtenstein) | 1407; DEC | x |
x |
de-li |
|
Greek | Greek | 0408; ELL | x |
x |
el |
|
Hebrew | Hebrew | 040D; HEB | BiDi |
BiDi |
he |
Bug: should support old string "iw" |
Hindi | Hindi | 0439; HIN | hi |
|||
Hungarian | Hungarian | 040e; HUN | x |
x |
hu |
|
Icelandic | Icelandic | 040F; ISL | x |
x |
is |
|
Indonesian | Indonesian | 0421; IND | x |
x |
in |
|
Italian | Italian (Standard) | 0410; ITA | x |
x |
it |
|
Italian | Italian (Swiss) | 0810; ITS | x |
x |
it-ch |
|
Japanese | Japanese | 0411; JPN | Asian |
Asian |
ja |
|
Korean | Korean | 0412; KOR | Asian |
Asian |
ko |
|
Korean | Korean (Johab) | 0812; KOJ | Asian |
Asian |
|
Locale is not used |
Latvian | Latvian | 0426, LVI | x |
x |
lv |
|
Lithuanian | Lithuanian | 0427, LTH | x |
x |
lt |
|
Macedonian | Macedonian | 042f; MKD | mk |
|||
Malay | Malaysian | 043e;MSL | ms |
|||
Maltese | Maltese | 043a; MTS | mt |
|||
Norwegian | Norwegian (Bokmal) | 0414; NOR | x |
x |
no |
Bug: should be no-bok |
Norwegian | Norwegian (Nynorsk) | 0814; NON | x |
x |
no |
Bug: should be no-nyn |
Polish | Polish | 0415; PLK | x |
x |
pl |
|
Portuguese | Portuguese (Brazilian) | 0416; PTB | x |
x |
pt-br |
|
Portuguese | Portuguese (Standard) | 0816; PTG | x |
x |
pt |
|
Rhaeto-Romanic | Rhaeto-Romanic | 0417; RMS | rm |
|||
Romanian | Romanian | 0418, ROM | x |
x |
ro |
|
Romanian | Romanian (Moldavia) | 0818, ROV | ro-mo |
|||
Russian | Russian | 0419; RUS | x |
x |
ru |
|
Russian | Russian (Moldavia) | 0819, RUM | ru-mo |
|||
Sami | Sami (Lappish) | 043b; SZI |
|
Bug: no iso639 exists | ||
Serbian | Serbian (Cyrillic) | 0c1a; SRB | x |
sr |
||
Serbian | Serbian (Latin) | 081a; SRL | x |
sr |
Ambiguous with 0c1a | |
Slovak | Slovak | 041b; SKY | x |
x |
sk |
|
Slovenian | Slovenian | 0424, SLV | x |
x |
sl |
|
Sorbian | Sorbian | 042e, SBN | sb |
|||
Spanish | Spanish (Spain - Traditional Sort) | 040a; ESP | x |
x |
es |
|
Spanish | Spanish (Mexican) | 080a; ESM | x |
x |
es-mx |
|
Spanish | Spanish (Spain - Modern Sort) | 0c0a; ESN | x |
x |
es |
Ambiguous with 040a |
Spanish | Spanish (Guatemala) | 100a; ESG | x |
x |
es-gt |
|
Spanish | Spanish (Costa Rica) | 140a; ESC | x |
x |
es-cr |
|
Spanish | Spanish (Panama) | 180a; ESA | x |
x |
es-pa |
|
Spanish | Spanish (Dominican Republic) | 1c0a; ESD | x |
x |
es-do |
|
Spanish | Spanish (Venezuela) | 200a; ESV | x |
x |
es-ve |
|
Spanish | Spanish (Colombia) | 240a; ESO | x |
x |
es-co |
|
Spanish | Spanish (Peru) | 280a; ESR | x |
x |
es-pe |
|
Spanish | Spanish (Argentina) | 2c0a; ESS | x |
x |
es-ar |
|
Spanish | Spanish (Ecuador) | 300a; ESF | x |
x |
es-ec |
|
Spanish | Spanish (Chile) | 340a; ESL | x |
x |
es-cl |
|
Spanish | Spanish (Uruguay) | 380a; ESY | x |
x |
es-uy |
|
Spanish | Spanish (Paraguay) | 3c0a; ESZ | x |
x |
es-py |
|
Spanish | Spanish (Bolivia) | 400a; ESB | x |
x |
es-bo |
|
Spanish | Spanish (El Salvador) | 440a; ESE | x |
x |
es-sv |
|
Spanish | Spanish (Honduras) | 480a; ESH | x |
x |
es-hn |
|
Spanish | Spanish (Nicaragua) | 4c0a; ESI | x |
x |
es-ni |
|
Spanish | Spanish (Puerto Rico) | 500a; ESU | x |
x |
es-pr |
|
Sutu | Sutu | 0430; SXT | sx |
|||
Swedish | Swedish | 041D; SVE | x |
x |
sv |
|
Swedish | Swedish (Finland) | 081d; SVF | x |
x |
sv-fi |
|
Thai | Thai | 041E; THA | Thai |
Thai |
th |
|
Tsonga | Tsonga | 0431; TSG | ts |
|||
Tswana | Tswana | 0432; TNA | tn |
|||
Turkish | Turkish | 041f; TRK | x |
x |
tr |
|
Ukrainian | Ukrainian | 0422, UKR | x |
x |
uk |
|
Urdu | Urdu | 0420; URD | ur |
|||
Venda | Venda | 0433; VEN |
|
Bug: no iso639 exists | ||
Vietnamese | Vietnamese | 042a; VIT | vi |
|||
Xhosa | Xhosa | 0434; XHS | xh |
|||
Yiddish | Yiddish | 043d; JII | ji |
|||
Zulu | Zulu | 0435; ZUL | zu |