Some routines, such as SRP_Date, SRP_Time, and SRP_DateTime, use locale names to target a specific language. In such cases, SRP Utilities uses the language tagging conventions of Windows Vista and later. Instead of making you hunt down that information yourself, which is not in one tidy place, we explain what you'll need right here.
Locale names have a complex syntax that allow you to specify all aspects of a language, it's script, and the region, but in 99.99% of cases, you'll use "language-REGION" where "language" is a lowercase ISO 639-1 language code and "REGION" is an uppercase ISO 3166-1 country/region identifier. "REGION" is optional. For example, the locale name for English is "en", the locale name for English (United States) is "en-US", and the locale name for French (Canada) is "fr-CA".
Instead of making you look up language and region codes individually, here is a list of the 200 most common languages and regions:
Language Code | Description |
---|---|
af | Afrikaans |
af-ZA | Afrikaans - South Africa |
ar | Arabic |
ar-AE | Arabic - United Arab Emirates |
ar-BH | Arabic - Bahrain |
ar-DZ | Arabic - Algeria |
ar-EG | Arabic - Egypt |
ar-IQ | Arabic - Iraq |
ar-JO | Arabic - Jordan |
ar-KW | Arabic - Kuwait |
ar-LB | Arabic - Lebanon |
ar-LY | Arabic - Libya |
ar-MA | Arabic - Morocco |
ar-OM | Arabic - Oman |
ar-QA | Arabic - Qatar |
ar-SA | Arabic - Saudi Arabia |
ar-SY | Arabic - Syria |
ar-TN | Arabic - Tunisia |
ar-YE | Arabic - Yemen |
az | Azeri |
az-AZ | Cyrl Azeri (Cyrillic) - Azerbaijan |
az-AZ-Latn | Azeri (Latin) - Azerbaijan |
be | Belarusian |
be-BY | Belarusian - Belarus |
bg | Bulgarian |
bg-BG | Bulgarian - Bulgaria |
ca | Catalan |
ca-ES | Catalan - Catalan |
cs | Czech |
cs-CZ | Czech - Czech Republic |
da | Danish |
da-DK | Danish - Denmark |
de | German |
de-AT | German - Austria |
de-CH | German - Switzerland |
de-DE | German - Germany |
de-LI | German - Liechtenstein |
de-LU | German - Luxembourg |
div | Dhivehi |
div-MV | Dhivehi - Maldives |
el | Greek |
el-GR | Greek - Greece |
en | English |
en-AU | English - Australia |
en-BZ | English - Belize |
en-CA | English - Canada |
en-CB | English - Caribbean |
en-GB | English - United Kingdom |
en-IE | English - Ireland |
en-JM | English - Jamaica |
en-NZ | English - New Zealand |
en-PH | English - Philippines |
en-TT | English - Trinidad and Tobago |
en-US | English - United States |
en-ZA ` | English - South Africa |
en-ZW | English - Zimbabwe |
es | Spanish |
es-AR | Spanish - Argentina |
es-BO | Spanish - Bolivia |
es-CLe | Spanish - Chile |
es-CO | Spanish - Colombia |
es-CR | Spanish - Costa Rica |
es-DO | Spanish - Dominican Republic |
es-EC | Spanish - Ecuador |
es-ES | Spanish - Spain |
es-GT | Spanish - Guatemala |
es-HN | Spanish - Honduras |
es-MX | Spanish - Mexico |
es-NI Spanish | Spanish - Nicaragua |
es-PA | Spanish - Panama |
es-PE | Spanish - Peru |
es-PR | Spanish - Puerto Rico |
es-PY | Spanish - Paraguay |
es-SV | Spanish - El Salvador |
es-UY | Spanish - Uruguay |
es-VE | Spanish - Venezuela |
et | Estonian |
et-EE | Estonian - Estonia |
eu | Basque |
eu-ES | Basque - Basque |
fa | Farsi |
fa-IR | Farsi - Iran |
fi | Finnish |
fi-FI | Finnish - Finland |
fo | Faroese |
fo-FO | Faroese - Faroe Islands |
fr | French |
fr-BE | French - Belgium |
fr-CA | French - Canada |
fr-CH | French - Switzerland |
fr-FR | French - France |
fr-LU | French - Luxembourg |
fr-MC | French - Monaco |
gl | Galician |
gl-ES | Galician - Galician |
gu | Gujarati |
gu-IN | Gujarati - India |
he | Hebrew |
he-IL | Hebrew - Israel |
hi | Hindi |
hi-IN | Hindi - India |
hr | Croatian |
hr-HR | Croatian - Croatia |
hu | Hungarian |
hu-HU | Hungarian - Hungary |
hy | Armenian |
hy-AM | Armenian - Armenia |
id | Indonesian |
id-ID | Indonesian - Indonesia |
is | Icelandic |
is-IS | Icelandic - Iceland |
it | Italian |
it-CH Italian | Italian - Switzerland |
it-IT | Italian - Italy |
ja | Japanese |
ja-JP | Japanese - Japan |
ka | Georgian |
ka-GE | Georgian - Georgia |
kk | Kazakh |
kk-KZ | Kazakh - Kazakhstan |
kn | Kannada |
kn-IN | Kannada - India |
ko | Korean |
kok | Konkani |
kok-IN | Konkani - India |
ko-KR | Korean - Korea |
ky | Kyrgyz |
ky-KG | Kyrgyz - Kyrgyzstan |
lt | Lithuanian |
lt-LT | Lithuanian - Lithuania |
lv | Latvian |
lv-LV | Latvian - Latvia |
mk | Macedonian |
mk-MK | Macedonian - Former Yugoslav Republic of Macedonia |
mn | Mongolian |
mn-MN | Mongolian - Mongolia |
mr | Marathi |
mr-IN | Marathi - India |
ms | Malay |
ms-BN | Malay - Brunei |
ms-MY | Malay - Malaysia |
nb-NO | Norwegian (Bokm?l) - Norway |
nl | Dutch |
nl-BE | Dutch - Belgium |
nl-NL | Dutch - The Netherlands |
nn-NO | Norwegian (Nynorsk) - Norway |
no | Norwegian |
pa | Punjabi |
pa-IN | Punjabi - India |
pl | Polish |
pl-PL | Polish - Poland |
pt | Portuguese |
pt-BR | Portuguese - Brazil |
pt-PT | Portuguese - Portugal |
ro | Romanian |
ro-RO | Romanian - Romania |
ru | Russian |
ru-RU | Russian - Russia |
sa | Sanskrit |
sa-IN | Sanskrit - India |
sk | Slovak |
sk-SK | Slovak - Slovakia |
sl | Slovenian |
sl-SI | Slovenian - Slovenia |
sq | Albanian |
sq-AL | Albanian - Albania |
sr-SP-Cyrl | Serbian (Cyrillic) - Serbia |
sr-SP-Latn | Serbian (Latin) - Serbia |
sv | Swedish |
sv-FI | Swedish - Finland |
sv-SE | Swedish - Sweden |
sw | Swahili |
sw-KE | Swahili - Kenya |
syr | Syriac |
syr-SY | Syriac - Syria |
ta | Tamil |
ta-IN | Tamil - India |
te | Telugu |
te-IN | Telugu - India |
th | Thai |
th-TH | Thai - Thailand |
tr | Turkish |
tr-TR | Turkish - Turkey |
tt | Tatar |
tt-RU | Tatar - Russia |
uk | Ukrainian |
uk-UA | Ukrainian - Ukraine |
ur | Urdu |
ur-PK | Urdu - Pakistan |
uz | Uzbek |
uz-UZ-Cyrl | Uzbek (Cyrillic) - Uzbekistan |
uz-UZ-Latn | Uzbek (Latin) - Uzbekistan |
vi | Vietnamese |
zh-CHT | Chinese (Traditional) |
zh-CHS | Chinese (Simplified) |
zh-CN | Chinese - China |
zh-HK | Chinese - Hong Kong SAR |
zh-MO | Chinese - Macao SAR |
zh-SG | Chinese - Singapore |
zh-TW | Chinese - Taiwan |