ISO 639-1标准语言代码
最近在开发多语言包时,需要知道不同语言的代码是什么,找了一下,这里做一下笔记
Afrikaans | af |
Albanian | sq |
Arabic (Algeria) | ar-dz |
Arabic (Bahrain) | ar-bh |
Arabic (Egypt) | ar-eg |
Arabic (Iraq) | ar-iq |
Arabic (Jordan) | ar-jo |
Arabic (Kuwait) | ar-kw |
Arabic (Lebanon) | ar-lb |
Arabic (Libya) | ar-ly |
Arabic (Morocco) | ar-ma |
Arabic (Oman) | ar-om |
Arabic (Qatar) | ar-qa |
Arabic (Saudi Arabia) | ar-sa |
Arabic (Syria) | ar-sy |
Arabic (Tunisia) | ar-tn |
Arabic (U.A.E.) | ar-ae |
Arabic (Yemen) | ar-ye |
Basque | eu |
Belarusian | be |
Bulgarian | bg |
Catalan | ca |
Chinese (Hong Kong) | zh-hk |
Chinese (PRC) | zh-cn |
Chinese (Singapore) | zh-sg |
Chinese (Taiwan) | zh-tw |
Croatian | hr |
Czech | cs |
Danish | da |
Dutch (Belgium) | nl-be |
Dutch (Standard) | nl |
English | en |
English (Australia) | en-au |
English (Belize) | en-bz |
English (Canada) | en-ca |
English (Ireland) | en-ie |
English (Jamaica) | en-jm |
English (New Zealand) | en-nz |
English (South Africa) | en-za |
English (Trinidad) | en-tt |
English (United Kingdom) | en-gb |
English (United States) | en-us |
Estonian | et |
Faeroese | fo |
Farsi | fa |
Finnish | fi |
French (Belgium) | fr-be |
French (Canada) | fr-ca |
French (Luxembourg) | fr-lu |
French (Standard) | fr |
French (Switzerland) | fr-ch |
Gaelic (Scotland) | gd |
German (Austria) | de-at |
German (Liechtenstein) | de-li |
German (Luxembourg) | de-lu |
German (Standard) | de |
German (Switzerland) | de-ch |
Greek | el |
Hebrew | he |
Hindi | hi |
Hungarian | hu |
Icelandic | is |
Indonesian | id |
Irish | ga |
Italian (Standard) | it |
Italian (Switzerland) | it-ch |
Japanese | ja |
Korean | ko |
Korean (Johab) | ko |
Kurdish | ku |
Latvian | lv |
Lithuanian | lt |
Macedonian (FYROM) | mk |
Malayalam | ml |
Malaysian | ms |
Maltese | mt |
Norwegian | no |
Norwegian (Bokmål) | nb |
Norwegian (Nynorsk) | nn |
Polish | pl |
Portuguese (Brazil) | pt-br |
Portuguese (Portugal) | pt |
Punjabi | pa |
Rhaeto-Romanic | rm |
Romanian | ro |
Romanian (Republic of Moldova) | ro-md |
Russian | ru |
Russian (Republic of Moldova) | ru-md |
Serbian | sr |
Slovak | sk |
Slovenian | sl |
Sorbian | sb |
Spanish (Argentina) | es-ar |
Spanish (Bolivia) | es-bo |
Spanish (Chile) | es-cl |
Spanish (Colombia) | es-co |
Spanish (Costa Rica) | es-cr |
Spanish (Dominican Republic) | es-do |
Spanish (Ecuador) | es-ec |
Spanish (El Salvador) | es-sv |
Spanish (Guatemala) | es-gt |
Spanish (Honduras) | es-hn |
Spanish (Mexico) | es-mx |
Spanish (Nicaragua) | es-ni |
Spanish (Panama) | es-pa |
Spanish (Paraguay) | es-py |
Spanish (Peru) | es-pe |
Spanish (Puerto Rico) | es-pr |
Spanish (Spain) | es |
Spanish (Uruguay) | es-uy |
Spanish (Venezuela) | es-ve |
Swedish | sv |
Swedish (Finland) | sv-fi |
Thai | th |
Tsonga | ts |
Tswana | tn |
Turkish | tr |
Ukrainian | uk |
Urdu | ur |
Venda | ve |
Vietnamese | vi |
Welsh | cy |
Xhosa | xh |
Yiddish | ji |
Zulu | zu |
在C#中设置区域信息时,会用得到以上语言代码
1 static void Main(string[] args) 2 { 3 CultureInfo cultureInfo = new CultureInfo("zh-CN"); 4 Console.WriteLine(cultureInfo.DisplayName); 6 }
运行输出: 中文(简体,中国)
以下链接中有更详细的语言代码