blob: 7b1ef782f6990a0b637a43d595183f1c45fea24b [file] [log] [blame]
Adrià Vilanova Martíneza197d862022-05-27 17:33:20 +02001export const isoLangs = {
avm99963ce257a92020-12-27 00:07:13 +01002 'af': {'name': 'Afrikaans', 'nativeName': 'Afrikaans'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +02003 'ak': {'name': 'Twi', 'nativeName': 'Akan'},
avm99963ce257a92020-12-27 00:07:13 +01004 'am': {'name': 'Amharic', 'nativeName': 'አማርኛ'},
5 'ar': {'name': 'Arabic', 'nativeName': 'العربية'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +02006 'as': {'name': 'Assamese', 'nativeName': 'অসমীয়া'},
7 'ay': {'name': 'Aymara', 'nativeName': 'aymar aru'},
avm99963ce257a92020-12-27 00:07:13 +01008 'az': {'name': 'Azerbaijani', 'nativeName': 'azərbaycan dili'},
avm99963ce257a92020-12-27 00:07:13 +01009 'be': {'name': 'Belarusian', 'nativeName': 'Беларуская'},
avm999630f961162020-12-27 13:12:27 +010010 'bg': {'name': 'Bulgarian', 'nativeName': 'български език'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020011 'bho': {'name': 'Bhojpuri', 'nativeName': 'भोजपुरी'},
12 'bm': {'name': 'Bambara', 'nativeName': 'bamanankan'},
avm99963ce257a92020-12-27 00:07:13 +010013 'bn': {'name': 'Bengali', 'nativeName': 'বাংলা'},
14 'bs': {'name': 'Bosnian', 'nativeName': 'bosanski jezik'},
avm99963ce257a92020-12-27 00:07:13 +010015 'ca': {'name': 'Catalan', 'nativeName': 'Català'},
avm999630f961162020-12-27 13:12:27 +010016 'ceb': {'name': 'Cebuano', 'nativeName': 'Binisaya'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020017 'ckb': {'name': 'Kurdish (Sorani)', 'nativeName': 'کوردیی ناوەندی'},
avm99963ce257a92020-12-27 00:07:13 +010018 'co': {'name': 'Corsican', 'nativeName': 'corsu'},
avm99963ce257a92020-12-27 00:07:13 +010019 'cs': {'name': 'Czech', 'nativeName': 'česky'},
avm999630f961162020-12-27 13:12:27 +010020 'cy': {'name': 'Welsh', 'nativeName': 'Cymraeg'},
avm99963ce257a92020-12-27 00:07:13 +010021 'da': {'name': 'Danish', 'nativeName': 'dansk'},
avm999630f961162020-12-27 13:12:27 +010022 'de': {'name': 'German', 'nativeName': 'Deutsch'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020023 'doi': {'name': 'Dogri', 'nativeName': '𑠖𑠵𑠌𑠤𑠮'},
24 'dv': {'name': 'Dhivehi', 'nativeName': 'ދިވެހި'},
25 'ee': {'name': 'Ewe', 'nativeName': 'Eʋegbe'},
avm999630f961162020-12-27 13:12:27 +010026 'el': {'name': 'Greek', 'nativeName': 'Ελληνικά'},
avm99963ce257a92020-12-27 00:07:13 +010027 'en': {'name': 'English', 'nativeName': 'English'},
28 'eo': {'name': 'Esperanto', 'nativeName': 'Esperanto'},
avm999630f961162020-12-27 13:12:27 +010029 'es': {'name': 'Spanish', 'nativeName': 'español'},
avm99963ce257a92020-12-27 00:07:13 +010030 'et': {'name': 'Estonian', 'nativeName': 'eesti'},
avm999630f961162020-12-27 13:12:27 +010031 'eu': {'name': 'Basque', 'nativeName': 'euskara'},
32 'fa': {'name': 'Persian', 'nativeName': 'فارسی'},
avm99963ce257a92020-12-27 00:07:13 +010033 'fi': {'name': 'Finnish', 'nativeName': 'suomi'},
34 'fr': {'name': 'French', 'nativeName': 'français'},
35 'fy': {'name': 'Frisian', 'nativeName': 'Frysk'},
avm99963ce257a92020-12-27 00:07:13 +010036 'ga': {'name': 'Irish', 'nativeName': 'Gaeilge'},
avm999630f961162020-12-27 13:12:27 +010037 'gd': {'name': 'Scots Gaelic', 'nativeName': 'Gàidhlig'},
38 'gl': {'name': 'Galician', 'nativeName': 'Galego'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020039 'gn': {'name': 'Guarani', 'nativeName': 'Avañeẽ'},
40 'gom': {'name': 'Konkani', 'nativeName': 'कोंकणी'},
avm999630f961162020-12-27 13:12:27 +010041 'gu': {'name': 'Gujarati', 'nativeName': 'ગુજરાતી'},
42 'ha': {'name': 'Hausa', 'nativeName': 'Hausa'},
43 'haw': {'name': 'Hawaiian', 'nativeName': 'ʻŌlelo Hawaiʻi'},
44 'hi': {'name': 'Hindi', 'nativeName': 'हिन्दी'},
45 'hmn': {'name': 'Hmong', 'nativeName': 'Hmoob'},
46 'hr': {'name': 'Croatian', 'nativeName': 'hrvatski'},
47 'ht': {'name': 'Haitian Creole', 'nativeName': 'Kreyòl ayisyen'},
48 'hu': {'name': 'Hungarian', 'nativeName': 'Magyar'},
49 'hy': {'name': 'Armenian', 'nativeName': 'Հայերեն'},
50 'id': {'name': 'Indonesian', 'nativeName': 'Bahasa Indonesia'},
51 'ig': {'name': 'Igbo', 'nativeName': 'Asụsụ Igbo'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020052 'ilo': {'name': 'Ilocano', 'nativeName': 'Ilokano'},
avm999630f961162020-12-27 13:12:27 +010053 'is': {'name': 'Icelandic', 'nativeName': 'Íslenska'},
avm99963ce257a92020-12-27 00:07:13 +010054 'it': {'name': 'Italian', 'nativeName': 'Italiano'},
avm999630f961162020-12-27 13:12:27 +010055 'iw': {'name': 'Hebrew', 'nativeName': 'עברית'},
avm99963ce257a92020-12-27 00:07:13 +010056 'ja': {'name': 'Japanese', 'nativeName': '日本語 (にほんご/にっぽんご)'},
avm999630f961162020-12-27 13:12:27 +010057 'jw': {'name': 'Javanese', 'nativeName': 'basa Jawa'},
58 'ka': {'name': 'Georgian', 'nativeName': 'ქართული'},
avm99963ce257a92020-12-27 00:07:13 +010059 'kk': {'name': 'Kazakh', 'nativeName': 'Қазақ тілі'},
60 'km': {'name': 'Khmer', 'nativeName': 'ភាសាខ្មែរ'},
avm999630f961162020-12-27 13:12:27 +010061 'kn': {'name': 'Kannada', 'nativeName': 'ಕನ್ನಡ'},
avm99963ce257a92020-12-27 00:07:13 +010062 'ko': {'name': 'Korean', 'nativeName': '한국어 (韓國語)'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020063 'kri': {'name': 'Krio', 'nativeName': 'Krio'},
avm99963ce257a92020-12-27 00:07:13 +010064 'ku': {'name': 'Kurdish (Kurmanji)', 'nativeName': 'Kurdî'},
65 'ky': {'name': 'Kyrgyz', 'nativeName': 'кыргыз тили'},
avm99963ce257a92020-12-27 00:07:13 +010066 'la': {'name': 'Latin', 'nativeName': 'latine'},
avm99963ce257a92020-12-27 00:07:13 +010067 'lb': {'name': 'Luxembourgish', 'nativeName': 'Lëtzebuergesch'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020068 'lg': {'name': 'Luganda', 'nativeName': 'Luganda'},
69 'ln': {'name': 'Lingala', 'nativeName': 'Lingála'},
avm999630f961162020-12-27 13:12:27 +010070 'lo': {'name': 'Lao', 'nativeName': 'ພາສາລາວ'},
71 'lt': {'name': 'Lithuanian', 'nativeName': 'lietuvių kalba'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020072 'lus': {'name': 'Mizo', 'nativeName': 'Mizo ṭawng'},
avm999630f961162020-12-27 13:12:27 +010073 'lv': {'name': 'Latvian', 'nativeName': 'latviešu valoda'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020074 'mai': {'name': 'Maithili', 'nativeName': 'मैथिली'},
avm99963ce257a92020-12-27 00:07:13 +010075 'mg': {'name': 'Malagasy', 'nativeName': 'Malagasy fiteny'},
avm999630f961162020-12-27 13:12:27 +010076 'mi': {'name': 'Maori', 'nativeName': 'te reo Māori'},
77 'mk': {'name': 'Macedonian', 'nativeName': 'македонски јазик'},
avm99963ce257a92020-12-27 00:07:13 +010078 'ml': {'name': 'Malayalam', 'nativeName': 'മലയാളം'},
avm99963ce257a92020-12-27 00:07:13 +010079 'mn': {'name': 'Mongolian', 'nativeName': 'монгол'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020080 'mni-Mtei': {'name': 'Meiteilon (Manipuri)', 'nativeName': 'ꯃꯤꯇꯩꯂꯣꯟ'},
avm999630f961162020-12-27 13:12:27 +010081 'mr': {'name': 'Marathi', 'nativeName': 'मराठी'},
82 'ms': {'name': 'Malay', 'nativeName': 'bahasa Melayu'},
83 'mt': {'name': 'Maltese', 'nativeName': 'Malti'},
84 'my': {'name': 'Myanmar (Burmese)', 'nativeName': 'ဗမာစာ'},
avm99963ce257a92020-12-27 00:07:13 +010085 'ne': {'name': 'Nepali', 'nativeName': 'नेपाली'},
avm999630f961162020-12-27 13:12:27 +010086 'nl': {'name': 'Dutch', 'nativeName': 'Nederlands'},
avm99963ce257a92020-12-27 00:07:13 +010087 'no': {'name': 'Norwegian', 'nativeName': 'Norsk'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020088 'nso': {'name': 'Sepedi', 'nativeName': 'Pedi'},
avm999630f961162020-12-27 13:12:27 +010089 'ny': {'name': 'Chichewa', 'nativeName': 'chiCheŵa'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020090 'om': {'name': 'Oromo', 'nativeName': 'Afaan Oromoo'},
avm999630f961162020-12-27 13:12:27 +010091 'or': {'name': 'Odia (Oriya)', 'nativeName': 'ଓଡ଼ିଆ'},
92 'pa': {'name': 'Punjabi', 'nativeName': 'ਪੰਜਾਬੀ'},
avm99963ce257a92020-12-27 00:07:13 +010093 'pl': {'name': 'Polish', 'nativeName': 'polski'},
avm999630f961162020-12-27 13:12:27 +010094 'ps': {'name': 'Pashto', 'nativeName': 'پښتو'},
avm99963ce257a92020-12-27 00:07:13 +010095 'pt': {'name': 'Portuguese', 'nativeName': 'Português'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020096 'qu': {'name': 'Quechua', 'nativeName': 'Runa Simi'},
avm99963ce257a92020-12-27 00:07:13 +010097 'ro': {'name': 'Romanian', 'nativeName': 'română'},
98 'ru': {'name': 'Russian', 'nativeName': 'русский язык'},
avm999630f961162020-12-27 13:12:27 +010099 'rw': {'name': 'Kinyarwanda', 'nativeName': 'Ikinyarwanda'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +0200100 'sa': {'name': 'Sanskrit', 'nativeName': 'संस्कृतम्'},
avm99963ce257a92020-12-27 00:07:13 +0100101 'sd': {'name': 'Sindhi', 'nativeName': 'सिन्धी'},
102 'si': {'name': 'Sinhala', 'nativeName': 'සිංහල'},
103 'sk': {'name': 'Slovak', 'nativeName': 'slovenčina'},
104 'sl': {'name': 'Slovenian', 'nativeName': 'slovenščina'},
avm999630f961162020-12-27 13:12:27 +0100105 'sm': {'name': 'Samoan', 'nativeName': 'gagana faa Samoa'},
106 'sn': {'name': 'Shona', 'nativeName': 'chiShona'},
avm99963ce257a92020-12-27 00:07:13 +0100107 'so': {'name': 'Somali', 'nativeName': 'Soomaaliga'},
avm999630f961162020-12-27 13:12:27 +0100108 'sq': {'name': 'Albanian', 'nativeName': 'Shqip'},
109 'sr': {'name': 'Serbian', 'nativeName': 'српски језик'},
110 'st': {'name': 'Sesotho', 'nativeName': 'Sesotho'},
avm99963ce257a92020-12-27 00:07:13 +0100111 'su': {'name': 'Sundanese', 'nativeName': 'Basa Sunda'},
avm99963ce257a92020-12-27 00:07:13 +0100112 'sv': {'name': 'Swedish', 'nativeName': 'svenska'},
avm999630f961162020-12-27 13:12:27 +0100113 'sw': {'name': 'Swahili', 'nativeName': 'Kiswahili'},
avm99963ce257a92020-12-27 00:07:13 +0100114 'ta': {'name': 'Tamil', 'nativeName': 'தமிழ்'},
115 'te': {'name': 'Telugu', 'nativeName': 'తెలుగు'},
avm999630f961162020-12-27 13:12:27 +0100116 'tg': {'name': 'Tajik', 'nativeName': 'тоҷикӣ'},
avm99963ce257a92020-12-27 00:07:13 +0100117 'th': {'name': 'Thai', 'nativeName': 'ไทย'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +0200118 'ti': {'name': 'Tigrinya', 'nativeName': 'ትግርኛ'},
avm999630f961162020-12-27 13:12:27 +0100119 'tk': {'name': 'Turkmen', 'nativeName': 'Türkmen'},
120 'tl': {'name': 'Filipino', 'nativeName': 'Wikang Tagalog'},
avm99963ce257a92020-12-27 00:07:13 +0100121 'tr': {'name': 'Turkish', 'nativeName': 'Türkçe'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +0200122 'ts': {'name': 'Tsonga', 'nativeName': 'Xitsonga'},
avm999630f961162020-12-27 13:12:27 +0100123 'tt': {'name': 'Tatar', 'nativeName': 'татарча'},
124 'ug': {'name': 'Uyghur', 'nativeName': 'Uyƣurqə'},
avm99963ce257a92020-12-27 00:07:13 +0100125 'uk': {'name': 'Ukrainian', 'nativeName': 'українська'},
126 'ur': {'name': 'Urdu', 'nativeName': 'اردو'},
127 'uz': {'name': 'Uzbek', 'nativeName': 'zbek'},
128 'vi': {'name': 'Vietnamese', 'nativeName': 'Tiếng Việt'},
avm99963ce257a92020-12-27 00:07:13 +0100129 'xh': {'name': 'Xhosa', 'nativeName': 'isiXhosa'},
130 'yi': {'name': 'Yiddish', 'nativeName': 'ייִדיש'},
131 'yo': {'name': 'Yoruba', 'nativeName': 'Yorùbá'},
avm999630f961162020-12-27 13:12:27 +0100132 'zh-CN': {'name': 'Chinese (Simplified)', 'nativeName': '汉语'},
133 'zh-TW': {'name': 'Chinese (Traditional)', 'nativeName': '漢語'},
avm99963f65e9bf2020-12-29 12:57:16 +0100134 'zu': {'name': 'Zulu', 'nativeName': 'isiZulu'},
135};
136
137// Some languages were incorrectly set. This map serves as a conversion between
138// the previous wrong languages and the correct code.
Adrià Vilanova Martíneza197d862022-05-27 17:33:20 +0200139export const convertLanguages = {
avm99963f65e9bf2020-12-29 12:57:16 +0100140 'jv': 'jw',
141 'zh': 'zh-CN',
avm99963ce257a92020-12-27 00:07:13 +0100142};