0

Which language codes (ISO) do we support on Lingohub? This article outlines our support for language codes and explains some important aspects regarding ISO codes, exceptions, and legacy encoding.

How do we approach language codes? When importing the resource file into the Lingohub project, we try to detect the language for the file.

  • From the information within the file itself (for the formats where it is applicable)
  • From the file name or
  • from the file path (if the file is being imported via a repository, an API import, or by uploading a ZIP file having path information.)

If the detection fails, the language can still be chosen from the list.

Language codes

The language code should specify the language information. We support all language codes in the current, up-to-date list defined in ISO 639-1 standard. Also, we support language-region combinations for all countries/territories that list official languages.

For example, for Switzerland (CH), where the official languages are German (de), French (fr), Italian (it), and Romansch (rm), these are combinations that we support: de-CH, fr-CH, it-CH, rm-CH.

pt-BR
  • ISO 639-1 - covers the registration of two-letter language codes. The complete list of all registered ISO 639-1 language codes can be found here .
  • Language/region separators that we accept are dash and underscore ( - _ )
  • ISO 3166-1 alpha-2 codes - defines two-letter country codes representing countries, dependent territories, and special areas of geographical interest.

Some resource file formats make it possible to define the language code of the associated language within the file. If that is the case with the uploaded resource file, and the valid code is specified, that is what we use. Examples of valid language codes:

  • en
  • de-AT
  • nl_BE
  • nl-be
  • nl_be

Specifying the language code in a file name

If no language code is specified within the file, we try to detect it from the file name. Here is how Lingohub will approach it:

language code description
  • base names are optional - the file name can consist of language code and extension only, for example, en.yml
  • language code separators come between the base name (if it is present) and the language code
  • valid language code separators are dot, underscore, and dash ( . _ - )
  • two letters lowercase language code
  • language/region separators that we accept are dash and underscore ( - _ )
  • two letters uppercase region code
  • extension as specified for the particular resource file format

Examples of properly formatted resource file names:

  • en.yml
  • en-US.yml
  • en_US.yml
  • activerecord.en.yml
  • activerecord_en.yml
  • activerecord-en.yml
  • activerecord-en-US.yml
  • activerecord.en_US.yml

Specifying the language code in the file path

If the resource file is imported via the repository, and no language code is found within the file or file name, we will search for it anywhere in the path preceding the file name.

language code in the path

The language code can be found anywhere in the path and needs to conform to the same rules as expected when it is in the file name. Examples of paths with valid language codes specified:

  • en/activerecord.yml
  • en/activerecord/errors.yml
  • locales/en/activerecord.yml
  • locales/activerecord.en/errors.yml
  • locales/en-AU/activerecord.yml

For some resource formats, a special syntax might be defined. Lingohub has implementations to interpret such syntax. E.g.:

  • Resources/Base.lproj/Localizable.strings (iOS strings)
  • src/main/res/values/en-rUS/strings.xml (Android XML files)

A list of all language codes supported by Lingohub

This table lits all language codes currently supported by Lingohub

language codelanguagelanguage codelanguage
abAbkhazaaAfar
afAfrikaansaf-ZAAfrikaans (South Africa)
akAkansqAlbanian
sq-ALAlbanian (Albania)sq-KSAlbanian (Kosovo)
amAmharicarArabic
ar-DZArabic (Algeria)ar-ARArabic (Arabic)
ar-BHArabic (Bahrain)ar-TDArabic (Chad)
ar-KMArabic (Comoros)ar-DJArabic (Djibouti)
ar-EGArabic (Egypt)ar-ERArabic (Eritrea)
ar-IQArabic (Iraq)ar-ILArabic (Israel)
ar-JOArabic (Jordan)ar-KWArabic (Kuwait)
ar-LBArabic (Lebanon)ar-LYArabic (Libya)
ar-MRArabic (Mauritania)ar-MAArabic (Morocco)
ar-OMArabic (Oman)ar-QAArabic (Qatar)
ar-SAArabic (Saudi Arabia)ar-SOArabic (Somalia)
ar-SDArabic (Sudan)ar-SYArabic (Syria)
ar-TNArabic (Tunisia)ar-AEArabic (United Arab Emirates)
ar-PSArabic (West Bank and Gaza)ar-EHArabic (Western Sahara)
ar-YEArabic (Yemen)anAragonese
hyArmenianhy-AMArmenian (Armenia)
asAssameseavAvaric
ayAymaraazAzerbaijani
az-AZAzerbaijani (Azerbaijan)bmBambara
baBashkireuBasque
eu-ESBasque (Spain)beBelarusian
be-BYBelarusian (Belarus)bnBengali
bn-INBengali (India)bhBihari
biBislamabsBosnian
bs-BABosnian (Bosnia and Herzegovina)brBreton
bgBulgarianbg-BGBulgarian (Bulgaria)
myBurmesecaCatalan
ca-ADCatalan (Andorra)ca-ESCatalan (Spain)
chChamorroceChechen
nyChichewazhChinese
zh-CNChinese (China)zh-HKChinese (Hong Kong)
zh-MOChinese (Macao)zh-SGChinese (Singapore)
zh-TWChinese (Taiwan)cvChuvash
kwCornishcoCorsican
crCreehrCroatian
hr-BACroatian (Bosnia and Herzegovina)hr-HRCroatian (Croatia)
csCzechcs-CZCzech (Czech Republic)
cs-SKCzech (Slovak Republic)daDanish
da-DKDanish (Denmark)da-FODanish (Faeroe Islands)
da-GLDanish (Greenland)dvDivehi
nlDutchnl-AWDutch (Aruba)
nl-BEDutch (Belgium)nl-CWDutch (Curaçao)
nl-ANDutch (Netherlands Antilles)nl-NLDutch (Netherlands)
nl-SXDutch (Sint Maarten (Dutch part))nl-SRDutch (Suriname)
dzDzongkhaen-ASEnglish (American Samoa)
en-AIEnglish (Anguilla)en-AGEnglish (Antigua and Barbuda)
en-AUEnglish (Australia)en-BDEnglish (Bangladesh)
en-BBEnglish (Barbados)en-BZEnglish (Belize)
en-BMEnglish (Bermuda)en-BWEnglish (Botswana)
en-VGEnglish (British Virgin Islands)en-CMEnglish (Cameroon)
en-CAEnglish (Canada)en-KYEnglish (Cayman Islands)
en-CKEnglish (Cook Islands)en-CWEnglish (Curaçao)
en-DMEnglish (Dominica)en-EREnglish (Eritrea)
en-FKEnglish (Falkland Islands)en-FJEnglish (Fiji)
en-GHEnglish (Ghana)en-GIEnglish (Gibraltar)
en-GDEnglish (Grenada)en-GUEnglish (Guam)
en-GGEnglish (Guernsey)en-GYEnglish (Guyana)
en-HKEnglish (Hong Kong)en-INEnglish (India)
en-IEEnglish (Ireland)en-IMEnglish (Isle of Man)
en-JMEnglish (Jamaica)en-JEEnglish (Jersey)
en-KEEnglish (Kenya)en-KIEnglish (Kiribati)
en-LSEnglish (Lesotho)en-LREnglish (Liberia)
en-MWEnglish (Malawi)en-MYEnglish (Malaysia)
en-MTEnglish (Malta)en-MHEnglish (Marshall Islands)
en-MUEnglish (Mauritius)en-FMEnglish (Micronesia)
en-MSEnglish (Montserrat)en-NAEnglish (Namibia)
en-NREnglish (Nauru)en-NZEnglish (New Zealand)
en-NGEnglish (Nigeria)en-NUEnglish (Niue)
en-MPEnglish (Northern Mariana Islands)en-PKEnglish (Pakistan)
en-PWEnglish (Palau)en-PGEnglish (Papua New Guinea)
en-PHEnglish (Philippines)en-PIEnglish (Pirate)
en-PNEnglish (Pitcairn Islands)en-PREnglish (Puerto Rico)
en-RWEnglish (Rwanda)en-SHEnglish (Saint Helena)
en-WSEnglish (Samoa)en-SCEnglish (Seychelles)
en-SLEnglish (Sierra Leone)en-SGEnglish (Singapore)
en-SBEnglish (Solomon Islands)en-SOEnglish (Somalia)
en-ZAEnglish (South Africa)en-SSEnglish (South Sudan)
en-LKEnglish (Sri Lanka)en-KNEnglish (St. Kitts and Nevis)
en-LCEnglish (St. Lucia)en-VCEnglish (St. Vincent and the Grenadines)
en-SDEnglish (Sudan)en-SZEnglish (Swaziland)
en-TZEnglish (Tanzania)en-BSEnglish (The Bahamas)
en-GMEnglish (The Gambia)en-TOEnglish (Tonga)
en-TTEnglish (Trinidad and Tobago)en-TCEnglish (Turks and Caicos Islands)
en-TVEnglish (Tuvalu)en-UGEnglish (Uganda)
en-GBEnglish (United Kingdom)en-VIEnglish (United States Virgin Islands)
en-USEnglish (United States)en-UDEnglish (Upside Down)
en-VUEnglish (Vanuatu)en-ZMEnglish (Zambia)
en-ZWEnglish (Zimbabwe)eo-EOEsperanto (Esperanto)
etEstonianet-EEEstonian (Estonia)
eeEwefoFaroese
fo-FOFaroese (Faeroe Islands)fjFijian
tl-PHFilipino (Philippines)fiFinnish
fi-FIFinnish (Finland)frFrench
fr-BEFrench (Belgium)fr-BJFrench (Benin)
fr-BFFrench (Burkina Faso)fr-BIFrench (Burundi)
fr-CMFrench (Cameroon)fr-CAFrench (Canada)
fr-CFFrench (Central African Republic)fr-TDFrench (Chad)
fr-KMFrench (Comoros)fr-CGFrench (Congo)
fr-CIFrench (Côte d'Ivoire)fr-CDFrench (Dem. Rep. Congo)
fr-DJFrench (Djibouti)fr-GQFrench (Equatorial Guinea)
fr-FRFrench (France)fr-GFFrench (French Guianna)
fr-PFFrench (French Polynesia)fr-GAFrench (Gabon)
fr-GDFrench (Grenada)fr-GPFrench (Guadeloupe)
fr-GNFrench (Guinea)fr-HTFrench (Haiti)
fr-LUFrench (Luxembourg)fr-MGFrench (Madagascar)
fr-MLFrench (Mali)fr-MQFrench (Martinique)
fr-MUFrench (Mauritius)fr-YTFrench (Mayotte)
fr-MCFrench (Monaco)fr-NCFrench (New Caledonia)
fr-NEFrench (Niger)fr-RWFrench (Rwanda)
fr-REFrench (Réunion)fr-PMFrench (Saint Pierre and Miquelon)
fr-SNFrench (Senegal)fr-SCFrench (Seychelles)
fr-LCFrench (St. Lucia)fr-MFFrench (St. Martin (French part))
fr-CHFrench (Switzerland)fr-TGFrench (Togo)
fr-VUFrench (Vanuatu)fr-WFFrench (Wallis and Futuna)
fy-NLFrisian (Netherlands)ffFula
glGaliciangl-ESGalician (Spain)
lgGandakaGeorgian
ka-GEGeorgian (Georgia)deGerman
de-ATGerman (Austria)de-BEGerman (Belgium)
de-DEGerman (Germany)de-LIGerman (Liechtenstein)
de-LUGerman (Luxembourg)de-NAGerman (Namibia)
de-CHGerman (Switzerland)elGreek
el-CYGreek (Cyprus)el-GRGreek (Greece)
gnGuaraníguGujarati
htHaitianhaHausa
heHebrewhe-ILHebrew (Israel)
hzHererohiHindi
hi-FJHindi (Fiji)hi-INHindi (India)
hi-PKHindi (Pakistan)hoHiri Motu
huHungarianhu-HUHungarian (Hungary)
isIcelandicis-ISIcelandic (Iceland)
ioIdoigIgbo
idIndonesianid-IDIndonesian (Indonesia)
iuInuktitutikInupiaq
gaIrishga-IEIrish (Ireland)
ga-GBIrish (United Kingdom)itItalian
it-ITItalian (Italy)it-SMItalian (San Marino)
it-CHItalian (Switzerland)it-VAItalian (Vatican City)
jaJapaneseja-JPJapanese (Japan)
ja-PWJapanese (Palau)jvJavanese
klKalaallisutknKannada
krKanuriksKashmiri
kkKazakhkmKhmer
km-KHKhmer (Cambodia)kiKikuyu
rwKinyarwandarnKirundi
kvKomikgKongo
koKoreanko-KPKorean (DPRK)
ko-KRKorean (South Korea)kuKurdish
ku-TRKurdish (Turkey)kjKwanyama
kyKyrgyzloLao
la-VALatin (Vatican City)lvLatvian
lv-LVLatvian (Latvia)fb-LTLeet Speak
liLimburgishlnLingala
ltLithuanianlt-LTLithuanian (Lithuania)
luLuba-KatangalbLuxembourgish
mkMacedonianmk-MKMacedonian (Macedonia)
mgMalagasymsMalay
ms-BNMalay (Brunei)ms-IDMalay (Indonesia)
ms-MYMalay (Malaysia)ms-SGMalay (Singapore)
mlMalayalamml-INMalayalam (India)
mtMaltesemt-MTMaltese (Malta)
gvManxmrMarathi
mhMarshallesemnMongolian
miMāorinaNauru
nvNavajongNdonga
neNepaline-NPNepali (Nepal)
ndNorth NdebeleseNorthern Sami
noNorwegianno-NONorwegian (Norway)
nbNorwegian Bokmålnb-NONorwegian Bokmål (Norway)
nnNorwegian Nynorsknn-NONorwegian Nynorsk (Norway)
iiNuosuocOccitan
ojOjibweorOriya
omOromoosOssetian
paPanjabipsPashto
ps-AFPashto (Afghanistan)faPersian
fa-IRPersian (Iran)plPolish
pl-PLPolish (Poland)ptPortuguese
pt-AOPortuguese (Angola)pt-BRPortuguese (Brazil)
pt-CVPortuguese (Cape Verde)pt-GQPortuguese (Equatorial Guinea)
pt-GWPortuguese (Guinea-Bissau)pt-MOPortuguese (Macao)
pt-MZPortuguese (Mozambique)pt-PTPortuguese (Portugal)
pt-STPortuguese (São Tomé and Principe)pt-TLPortuguese (Timor-Leste)
pa-INPunjabi (India)quQuechua
roRomanianro-MDRomanian (Moldova)
ro-RORomanian (Romania)rmRomansh
ruRussianru-BYRussian (Belarus)
ru-KZRussian (Kazakhstan)ru-KGRussian (Kyrgyz Republic)
ru-RURussian (Russia)ru-TJRussian (Tajikistan)
smSamoansgSango
saSanskritscSardinian
gdScottish GaelicsrSerbian
sr-BASerbian (Bosnia and Herzegovina)sr-MESerbian (Montenegro)
sr-RSSerbian (Serbia)snShona
sdSindhisiSinhala
skSlovaksk-CZSlovak (Czech Republic)
sk-SKSlovak (Slovakia)slSlovenian
sl-SISlovenian (Slovenia)soSomali
nrSouth NdebelestSouthern Sotho
esSpanishes-ARSpanish (Argentina)
es-BOSpanish (Bolivia)es-CLSpanish (Chile)
es-COSpanish (Colombia)es-CRSpanish (Costa Rica)
es-CUSpanish (Cuba)es-DOSpanish (Dominican Republic)
es-ECSpanish (Ecuador)es-SVSpanish (El Salvador)
es-GQSpanish (Equatorial Guinea)es-GISpanish (Gibraltar)
es-GTSpanish (Guatemala)es-HNSpanish (Honduras)
es-MXSpanish (Mexico)es-NISpanish (Nicaragua)
es-PASpanish (Panama)es-PYSpanish (Paraguay)
es-PESpanish (Peru)es-PRSpanish (Puerto Rico)
es-ESSpanish (Spain)es-LASpanish (Spanish)
es-USSpanish (United States)es-UYSpanish (Uruguay)
es-VESpanish (Venezuela)suSundanese
swSwahilisw-KESwahili (Kenya)
ssSwatisvSwedish
sv-FISwedish (Finland)sv-SESwedish (Sweden)
tlTagalogtyTahitian
tgTajiktaTamil
ta-INTamil (India)ttTatar
teTelugute-INTelugu (India)
thThaith-THThai (Thailand)
boTibetantiTigrinya
toTongatsTsonga
tnTswanatrTurkish
tr-CYTurkish (Cyprus)tr-TRTurkish (Turkey)
tkTurkmentwTwi
ugUighurukUkrainian
uk-UAUkrainian (Ukraine)urUrdu
uzUzbekveVenda
viVietnamesevi-VNVietnamese (Vietnam)
waWallooncyWelsh
cy-GBWelsh (United Kingdom)fyWestern Frisian
woWolofxhXhosa
yiYiddishyoYoruba
zaZhuangzuZulu
Try lingohub 14 days for free. No credit card. No catch. Cancel anytime