Skip to content

Instantly share code, notes, and snippets.

@josantonius
Last active October 14, 2024 05:15
Show Gist options
  • Save josantonius/b455e315bc7f790d14b136d61d9ae469 to your computer and use it in GitHub Desktop.
Save josantonius/b455e315bc7f790d14b136d61d9ae469 to your computer and use it in GitHub Desktop.
List of 217 language codes (ISO 639-1)
{
"aa": "Afar",
"ab": "Abkhazian",
"ae": "Avestan",
"af": "Afrikaans",
"ak": "Akan",
"am": "Amharic",
"an": "Aragonese",
"ar-ae": "Arabic (U.A.E.)",
"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)",
"ar": "Arabic",
"as": "Assamese",
"av": "Avaric",
"ay": "Aymara",
"az": "Azeri",
"ba": "Bashkir",
"be": "Belarusian",
"bg": "Bulgarian",
"bh": "Bihari",
"bi": "Bislama",
"bm": "Bambara",
"bn": "Bengali",
"bo": "Tibetan",
"br": "Breton",
"bs": "Bosnian",
"ca": "Catalan",
"ce": "Chechen",
"ch": "Chamorro",
"co": "Corsican",
"cr": "Cree",
"cs": "Czech",
"cu": "Church Slavonic",
"cv": "Chuvash",
"cy": "Welsh",
"da": "Danish",
"de-at": "German (Austria)",
"de-ch": "German (Switzerland)",
"de-de": "German (Germany)",
"de-li": "German (Liechtenstein)",
"de-lu": "German (Luxembourg)",
"de": "German",
"div": "Divehi",
"dv": "Divehi",
"dz": "Bhutani",
"ee": "Ewe",
"el": "Greek",
"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)",
"en": "English",
"eo": "Esperanto",
"es-ar": "Spanish (Argentina)",
"es-bo": "Spanish (Bolivia)",
"es-cl": "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 (Nicaragua)",
"es-pa": "Spanish (Panama)",
"es-pe": "Spanish (Peru)",
"es-pr": "Spanish (Puerto Rico)",
"es-py": "Spanish (Paraguay)",
"es-sv": "Spanish (El Salvador)",
"es-us": "Spanish (United States)",
"es-uy": "Spanish (Uruguay)",
"es-ve": "Spanish (Venezuela)",
"es": "Spanish",
"et": "Estonian",
"eu": "Basque",
"fa": "Farsi",
"ff": "Fulah",
"fi": "Finnish",
"fj": "Fiji",
"fo": "Faroese",
"fr-be": "French (Belgium)",
"fr-ca": "French (Canada)",
"fr-ch": "French (Switzerland)",
"fr-fr": "French (France)",
"fr-lu": "French (Luxembourg)",
"fr-mc": "French (Monaco)",
"fr": "French",
"fy": "Frisian",
"ga": "Irish",
"gd": "Gaelic",
"gl": "Galician",
"gn": "Guarani",
"gu": "Gujarati",
"gv": "Manx",
"ha": "Hausa",
"he": "Hebrew",
"hi": "Hindi",
"ho": "Hiri Motu",
"hr-ba": "Croatian (Bosnia and Herzegovina)",
"hr-hr": "Croatian (Croatia)",
"hr": "Croatian",
"ht": "Haitian",
"hu": "Hungarian",
"hy": "Armenian",
"hz": "Herero",
"ia": "Interlingua",
"id": "Indonesian",
"ie": "Interlingue",
"ig": "Igbo",
"ii": "Sichuan Yi",
"ik": "Inupiak",
"in": "Indonesian",
"io": "Ido",
"is": "Icelandic",
"it-ch": "Italian (Switzerland)",
"it-it": "Italian (Italy)",
"it": "Italian",
"iu": "Inuktitut",
"iw": "Hebrew",
"ja": "Japanese",
"ji": "Yiddish",
"jv": "Javanese",
"jw": "Javanese",
"ka": "Georgian",
"kg": "Kongo",
"ki": "Kikuyu",
"kj": "Kuanyama",
"kk": "Kazakh",
"kl": "Greenlandic",
"km": "Cambodian",
"kn": "Kannada",
"ko": "Korean",
"kok": "Konkani",
"kr": "Kanuri",
"ks": "Kashmiri",
"ku": "Kurdish",
"kv": "Komi",
"kw": "Cornish",
"ky": "Kirghiz",
"kz": "Kyrgyz",
"la": "Latin",
"lb": "Luxembourgish",
"lg": "Ganda",
"li": "Limburgan",
"ln": "Lingala",
"lo": "Laothian",
"ls": "Slovenian",
"lt": "Lithuanian",
"lu": "Luba-Katanga",
"lv": "Latvian",
"mg": "Malagasy",
"mh": "Marshallese",
"mi": "Maori",
"mk": "FYRO Macedonian",
"ml": "Malayalam",
"mn": "Mongolian",
"mo": "Moldavian",
"mr": "Marathi",
"ms-bn": "Malay (Brunei Darussalam)",
"ms-my": "Malay (Malaysia)",
"ms": "Malay",
"mt": "Maltese",
"my": "Burmese",
"na": "Nauru",
"nb": "Norwegian (Bokmal)",
"nd": "North Ndebele",
"ne": "Nepali (India)",
"ng": "Ndonga",
"nl-be": "Dutch (Belgium)",
"nl-nl": "Dutch (Netherlands)",
"nl": "Dutch",
"nn": "Norwegian (Nynorsk)",
"no": "Norwegian",
"nr": "South Ndebele",
"ns": "Northern Sotho",
"nv": "Navajo",
"ny": "Chichewa",
"oc": "Occitan",
"oj": "Ojibwa",
"om": "(Afan)/Oromoor/Oriya",
"or": "Oriya",
"os": "Ossetian",
"pa": "Punjabi",
"pi": "Pali",
"pl": "Polish",
"ps": "Pashto/Pushto",
"pt-br": "Portuguese (Brazil)",
"pt-pt": "Portuguese (Portugal)",
"pt": "Portuguese",
"qu-bo": "Quechua (Bolivia)",
"qu-ec": "Quechua (Ecuador)",
"qu-pe": "Quechua (Peru)",
"qu": "Quechua",
"rm": "Rhaeto-Romanic",
"rn": "Kirundi",
"ro": "Romanian",
"ru": "Russian",
"rw": "Kinyarwanda",
"sa": "Sanskrit",
"sb": "Sorbian",
"sc": "Sardinian",
"sd": "Sindhi",
"se-fi": "Sami (Finland)",
"se-no": "Sami (Norway)",
"se-se": "Sami (Sweden)",
"se": "Sami",
"sg": "Sangro",
"sh": "Serbo-Croatian",
"si": "Singhalese",
"sk": "Slovak",
"sl": "Slovenian",
"sm": "Samoan",
"sn": "Shona",
"so": "Somali",
"sq": "Albanian",
"sr-ba": "Serbian (Bosnia and Herzegovina)",
"sr-sp": "Serbian (Serbia and Montenegro)",
"sr": "Serbian",
"ss": "Siswati",
"st": "Sesotho",
"su": "Sundanese",
"sv-fi": "Swedish (Finland)",
"sv-se": "Swedish (Sweden)",
"sv": "Swedish",
"sw": "Swahili",
"sx": "Sutu",
"syr": "Syriac",
"ta": "Tamil",
"te": "Telugu",
"tg": "Tajik",
"th": "Thai",
"ti": "Tigrinya",
"tk": "Turkmen",
"tl": "Tagalog",
"tn": "Tswana",
"to": "Tonga",
"tr": "Turkish",
"ts": "Tsonga",
"tt": "Tatar",
"tw": "Twi",
"ty": "Tahitian",
"ug": "Uighur",
"uk": "Ukrainian",
"ur": "Urdu",
"us": "English",
"uz": "Uzbek",
"ve": "Venda",
"vi": "Vietnamese",
"vo": "Volapuk",
"wa": "Walloon",
"wo": "Wolof",
"xh": "Xhosa",
"yi": "Yiddish",
"yo": "Yoruba",
"za": "Zhuang",
"zh-cn": "Chinese (China)",
"zh-hk": "Chinese (Hong Kong SAR)",
"zh-mo": "Chinese (Macau SAR)",
"zh-sg": "Chinese (Singapore)",
"zh-tw": "Chinese (Taiwan)",
"zh": "Chinese",
"zu": "Zulu"
}
@josantonius
Copy link
Author

@ayrtoneverton
Copy link

First of all, thank you very much, your base helped a lot.

For those who want to list all language codes, here is an updated suggestion:

{
  "aa": "Afar",
  "ab": "Abkhazian",
  "ae": "Avestan",
  "af": "Afrikaans",
  "ak": "Akan",
  "am": "Amharic",
  "an": "Aragonese",
  "ar": "Arabic",
  "ar-ae": "Arabic (U.A.E.)",
  "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)",
  "as": "Assamese",
  "av": "Avaric",
  "ay": "Aymara",
  "az": "Azeri",
  "ba": "Bashkir",
  "be": "Belarusian",
  "bg": "Bulgarian",
  "bh": "Bihari",
  "bi": "Bislama",
  "bm": "Bambara",
  "bn": "Bengali",
  "bo": "Tibetan",
  "br": "Breton",
  "bs": "Bosnian",
  "ca": "Catalan",
  "ce": "Chechen",
  "ch": "Chamorro",
  "co": "Corsican",
  "cr": "Cree",
  "cs": "Czech",
  "cu": "Church Slavonic",
  "cv": "Chuvash",
  "cy": "Welsh",
  "da": "Danish",
  "de": "German",
  "de-at": "German (Austria)",
  "de-ch": "German (Switzerland)",
  "de-de": "German (Germany)",
  "de-li": "German (Liechtenstein)",
  "de-lu": "German (Luxembourg)",
  "div": "Divehi",
  "dv": "Divehi",
  "dz": "Bhutani",
  "ee": "Ewe",
  "el": "Greek",
  "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)",
  "eo": "Esperanto",
  "es": "Spanish",
  "es-ar": "Spanish (Argentina)",
  "es-bo": "Spanish (Bolivia)",
  "es-cl": "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 (Nicaragua)",
  "es-pa": "Spanish (Panama)",
  "es-pe": "Spanish (Peru)",
  "es-pr": "Spanish (Puerto Rico)",
  "es-py": "Spanish (Paraguay)",
  "es-sv": "Spanish (El Salvador)",
  "es-us": "Spanish (United States)",
  "es-uy": "Spanish (Uruguay)",
  "es-ve": "Spanish (Venezuela)",
  "et": "Estonian",
  "eu": "Basque",
  "fa": "Farsi",
  "ff": "Fulah",
  "fi": "Finnish",
  "fj": "Fiji",
  "fo": "Faroese",
  "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)",
  "fy": "Frisian",
  "ga": "Irish",
  "gd": "Gaelic",
  "gl": "Galician",
  "gn": "Guarani",
  "gu": "Gujarati",
  "gv": "Manx",
  "ha": "Hausa",
  "he": "Hebrew",
  "hi": "Hindi",
  "ho": "Hiri Motu",
  "hr": "Croatian",
  "hr-ba": "Croatian (Bosnia and Herzegovina)",
  "hr-hr": "Croatian (Croatia)",
  "ht": "Haitian",
  "hu": "Hungarian",
  "hy": "Armenian",
  "hz": "Herero",
  "ia": "Interlingua",
  "id": "Indonesian",
  "ie": "Interlingue",
  "ig": "Igbo",
  "ii": "Sichuan Yi",
  "ik": "Inupiak",
  "in": "Indonesian",
  "io": "Ido",
  "is": "Icelandic",
  "it": "Italian",
  "it-ch": "Italian (Switzerland)",
  "it-it": "Italian (Italy)",
  "iu": "Inuktitut",
  "iw": "Hebrew",
  "ja": "Japanese",
  "ji": "Yiddish",
  "jv": "Javanese",
  "jw": "Javanese",
  "ka": "Georgian",
  "kg": "Kongo",
  "ki": "Kikuyu",
  "kj": "Kuanyama",
  "kk": "Kazakh",
  "kl": "Greenlandic",
  "km": "Cambodian",
  "kn": "Kannada",
  "ko": "Korean",
  "kok": "Konkani",
  "kr": "Kanuri",
  "ks": "Kashmiri",
  "ku": "Kurdish",
  "kv": "Komi",
  "kw": "Cornish",
  "ky": "Kirghiz",
  "kz": "Kyrgyz",
  "la": "Latin",
  "lb": "Luxembourgish",
  "lg": "Ganda",
  "li": "Limburgan",
  "ln": "Lingala",
  "lo": "Laothian",
  "ls": "Slovenian",
  "lt": "Lithuanian",
  "lu": "Luba-Katanga",
  "lv": "Latvian",
  "mg": "Malagasy",
  "mh": "Marshallese",
  "mi": "Maori",
  "mk": "FYRO Macedonian",
  "ml": "Malayalam",
  "mn": "Mongolian",
  "mo": "Moldavian",
  "mr": "Marathi",
  "ms": "Malay",
  "ms-bn": "Malay (Brunei Darussalam)",
  "ms-my": "Malay (Malaysia)",
  "mt": "Maltese",
  "my": "Burmese",
  "na": "Nauru",
  "nb": "Norwegian (Bokmal)",
  "nd": "North Ndebele",
  "ne": "Nepali (India)",
  "ng": "Ndonga",
  "nl": "Dutch",
  "nl-be": "Dutch (Belgium)",
  "nl-nl": "Dutch (Netherlands)",
  "nn": "Norwegian (Nynorsk)",
  "no": "Norwegian",
  "nr": "South Ndebele",
  "ns": "Northern Sotho",
  "nv": "Navajo",
  "ny": "Chichewa",
  "oc": "Occitan",
  "oj": "Ojibwa",
  "om": "(Afan)/Oromoor/Oriya",
  "or": "Oriya",
  "os": "Ossetian",
  "pa": "Punjabi",
  "pi": "Pali",
  "pl": "Polish",
  "ps": "Pashto/Pushto",
  "pt": "Portuguese",
  "pt-br": "Portuguese (Brazil)",
  "pt-pt": "Portuguese (Portugal)",
  "qu": "Quechua",
  "qu-bo": "Quechua (Bolivia)",
  "qu-ec": "Quechua (Ecuador)",
  "qu-pe": "Quechua (Peru)",
  "rm": "Rhaeto-Romanic",
  "rn": "Kirundi",
  "ro": "Romanian",
  "ru": "Russian",
  "rw": "Kinyarwanda",
  "sa": "Sanskrit",
  "sb": "Sorbian",
  "sc": "Sardinian",
  "sd": "Sindhi",
  "se": "Sami",
  "se-fi": "Sami (Finland)",
  "se-no": "Sami (Norway)",
  "se-se": "Sami (Sweden)",
  "sg": "Sangro",
  "sh": "Serbo-Croatian",
  "si": "Singhalese",
  "sk": "Slovak",
  "sl": "Slovenian",
  "sm": "Samoan",
  "sn": "Shona",
  "so": "Somali",
  "sq": "Albanian",
  "sr": "Serbian",
  "sr-ba": "Serbian (Bosnia and Herzegovina)",
  "sr-sp": "Serbian (Serbia and Montenegro)",
  "ss": "Siswati",
  "st": "Sesotho",
  "su": "Sundanese",
  "sv": "Swedish",
  "sv-fi": "Swedish (Finland)",
  "sv-se": "Swedish (Sweden)",
  "sw": "Swahili",
  "sx": "Sutu",
  "syr": "Syriac",
  "ta": "Tamil",
  "te": "Telugu",
  "tg": "Tajik",
  "th": "Thai",
  "ti": "Tigrinya",
  "tk": "Turkmen",
  "tl": "Tagalog",
  "tn": "Tswana",
  "to": "Tonga",
  "tr": "Turkish",
  "ts": "Tsonga",
  "tt": "Tatar",
  "tw": "Twi",
  "ty": "Tahitian",
  "ug": "Uighur",
  "uk": "Ukrainian",
  "ur": "Urdu",
  "us": "English",
  "uz": "Uzbek",
  "ve": "Venda",
  "vi": "Vietnamese",
  "vo": "Volapuk",
  "wa": "Walloon",
  "wo": "Wolof",
  "xh": "Xhosa",
  "yi": "Yiddish",
  "yo": "Yoruba",
  "za": "Zhuang",
  "zh": "Chinese",
  "zh-cn": "Chinese (China)",
  "zh-hk": "Chinese (Hong Kong SAR)",
  "zh-mo": "Chinese (Macau SAR)",
  "zh-sg": "Chinese (Singapore)",
  "zh-tw": "Chinese (Taiwan)",
  "zu": "Zulu"
}

@josantonius
Copy link
Author

First of all, thank you very much, your base helped a lot.

For those who want to list all language codes, here is an updated suggestion:

I've updated it with the suggested changes.

Thanks @ayrtoneverton!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment