Skip to content

Instantly share code, notes, and snippets.

@josantonius
Last active April 8, 2025 04:27
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 183 language codes (ISO 639-1)
{
"aa": "Afar",
"ab": "Abkhazian",
"ae": "Avestan",
"af": "Afrikaans",
"ak": "Akan",
"am": "Amharic",
"an": "Aragonese",
"ar": "Arabic",
"as": "Assamese",
"av": "Avaric",
"ay": "Aymara",
"az": "Azerbaijani",
"ba": "Bashkir",
"be": "Belarusian",
"bg": "Bulgarian",
"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 Slavic",
"cv": "Chuvash",
"cy": "Welsh",
"da": "Danish",
"de": "German",
"dv": "Divehi",
"dz": "Dzongkha",
"ee": "Ewe",
"el": "Greek",
"en": "English",
"eo": "Esperanto",
"es": "Spanish",
"et": "Estonian",
"eu": "Basque",
"fa": "Persian",
"ff": "Fulah",
"fi": "Finnish",
"fj": "Fijian",
"fo": "Faroese",
"fr": "French",
"fy": "Western Frisian",
"ga": "Irish",
"gd": "Gaelic",
"gl": "Galician",
"gn": "Guarani",
"gu": "Gujarati",
"gv": "Manx",
"ha": "Hausa",
"he": "Hebrew",
"hi": "Hindi",
"ho": "Hiri Motu",
"hr": "Croatian",
"ht": "Haitian",
"hu": "Hungarian",
"hy": "Armenian",
"hz": "Herero",
"ia": "Interlingua",
"id": "Indonesian",
"ie": "Interlingue",
"ig": "Igbo",
"ii": "Sichuan Yi",
"ik": "Inupiaq",
"io": "Ido",
"is": "Icelandic",
"it": "Italian",
"iu": "Inuktitut",
"ja": "Japanese",
"jv": "Javanese",
"ka": "Georgian",
"kg": "Kongo",
"ki": "Kikuyu",
"kj": "Kuanyama",
"kk": "Kazakh",
"kl": "Kalaallisut",
"km": "Central Khmer",
"kn": "Kannada",
"ko": "Korean",
"kr": "Kanuri",
"ks": "Kashmiri",
"ku": "Kurdish",
"kv": "Komi",
"kw": "Cornish",
"ky": "Kirghiz",
"la": "Latin",
"lb": "Luxembourgish",
"lg": "Ganda",
"li": "Limburgan",
"ln": "Lingala",
"lo": "Lao",
"lt": "Lithuanian",
"lu": "Luba-Katanga",
"lv": "Latvian",
"mg": "Malagasy",
"mh": "Marshallese",
"mi": "Maori",
"mk": "Macedonian",
"ml": "Malayalam",
"mn": "Mongolian",
"mr": "Marathi",
"ms": "Malay",
"mt": "Maltese",
"my": "Burmese",
"na": "Nauru",
"nb": "Bokmål, Norwegian",
"nd": "Ndebele, North",
"ne": "Nepali",
"ng": "Ndonga",
"nl": "Dutch",
"nn": "Norwegian Nynorsk",
"no": "Norwegian",
"nr": "Ndebele, South",
"nv": "Navajo",
"ny": "Chichewa",
"oc": "Occitan",
"oj": "Ojibwa",
"om": "Oromo",
"or": "Oriya",
"os": "Ossetian",
"pa": "Panjabi",
"pi": "Pali",
"pl": "Polish",
"ps": "Pushto",
"pt": "Portuguese",
"qu": "Quechua",
"rm": "Romansh",
"rn": "Rundi",
"ro": "Romanian",
"ru": "Russian",
"rw": "Kinyarwanda",
"sa": "Sanskrit",
"sc": "Sardinian",
"sd": "Sindhi",
"se": "Northern Sami",
"sg": "Sango",
"si": "Sinhala",
"sk": "Slovak",
"sl": "Slovenian",
"sm": "Samoan",
"sn": "Shona",
"so": "Somali",
"sq": "Albanian",
"sr": "Serbian",
"ss": "Swati",
"st": "Sotho, Southern",
"su": "Sundanese",
"sv": "Swedish",
"sw": "Swahili",
"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",
"uz": "Uzbek",
"ve": "Venda",
"vi": "Vietnamese",
"vo": "Volapük",
"wa": "Walloon",
"wo": "Wolof",
"xh": "Xhosa",
"yi": "Yiddish",
"yo": "Yoruba",
"za": "Zhuang",
"zh": "Chinese",
"zu": "Zulu"
}
@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!

@FaisaljanBaloch
Copy link

Great work, @josantonius! But I was surprised to see that my language (Baluchi) is not listed despite over 10 million speakers.

@josantonius
Copy link
Author

Thanks @FaisaljanBaloch!

Actually, it's not that Baluchi is missing — it's that many other entries shouldn't be there if we strictly stick to ISO 639-1, which is what I originally intended 😅

I have cleaned up the list to reflect only the valid ISO 639-1 codes.

Baluchi (bal) isn't part of ISO 639-1 — it's included in ISO 639-2 and ISO 639-3 instead.
You can find the official code for Baluchi in the Library of Congress.

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