Adrià Vilanova Martínez | a197d86 | 2022-05-27 17:33:20 +0200 | [diff] [blame] | 1 | export const isoLangs = { |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 2 | 'af': {'name': 'Afrikaans', 'nativeName': 'Afrikaans'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 3 | 'ak': {'name': 'Twi', 'nativeName': 'Akan'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 4 | 'am': {'name': 'Amharic', 'nativeName': 'አማርኛ'}, |
| 5 | 'ar': {'name': 'Arabic', 'nativeName': 'العربية'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 6 | 'as': {'name': 'Assamese', 'nativeName': 'অসমীয়া'}, |
| 7 | 'ay': {'name': 'Aymara', 'nativeName': 'aymar aru'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 8 | 'az': {'name': 'Azerbaijani', 'nativeName': 'azərbaycan dili'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 9 | 'be': {'name': 'Belarusian', 'nativeName': 'Беларуская'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 10 | 'bg': {'name': 'Bulgarian', 'nativeName': 'български език'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 11 | 'bho': {'name': 'Bhojpuri', 'nativeName': 'भोजपुरी'}, |
| 12 | 'bm': {'name': 'Bambara', 'nativeName': 'bamanankan'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 13 | 'bn': {'name': 'Bengali', 'nativeName': 'বাংলা'}, |
| 14 | 'bs': {'name': 'Bosnian', 'nativeName': 'bosanski jezik'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 15 | 'ca': {'name': 'Catalan', 'nativeName': 'Català'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 16 | 'ceb': {'name': 'Cebuano', 'nativeName': 'Binisaya'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 17 | 'ckb': {'name': 'Kurdish (Sorani)', 'nativeName': 'کوردیی ناوەندی'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 18 | 'co': {'name': 'Corsican', 'nativeName': 'corsu'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 19 | 'cs': {'name': 'Czech', 'nativeName': 'česky'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 20 | 'cy': {'name': 'Welsh', 'nativeName': 'Cymraeg'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 21 | 'da': {'name': 'Danish', 'nativeName': 'dansk'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 22 | 'de': {'name': 'German', 'nativeName': 'Deutsch'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 23 | 'doi': {'name': 'Dogri', 'nativeName': '𑠖𑠵𑠌𑠤𑠮'}, |
| 24 | 'dv': {'name': 'Dhivehi', 'nativeName': 'ދިވެހި'}, |
| 25 | 'ee': {'name': 'Ewe', 'nativeName': 'Eʋegbe'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 26 | 'el': {'name': 'Greek', 'nativeName': 'Ελληνικά'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 27 | 'en': {'name': 'English', 'nativeName': 'English'}, |
| 28 | 'eo': {'name': 'Esperanto', 'nativeName': 'Esperanto'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 29 | 'es': {'name': 'Spanish', 'nativeName': 'español'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 30 | 'et': {'name': 'Estonian', 'nativeName': 'eesti'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 31 | 'eu': {'name': 'Basque', 'nativeName': 'euskara'}, |
| 32 | 'fa': {'name': 'Persian', 'nativeName': 'فارسی'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 33 | 'fi': {'name': 'Finnish', 'nativeName': 'suomi'}, |
| 34 | 'fr': {'name': 'French', 'nativeName': 'français'}, |
| 35 | 'fy': {'name': 'Frisian', 'nativeName': 'Frysk'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 36 | 'ga': {'name': 'Irish', 'nativeName': 'Gaeilge'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 37 | 'gd': {'name': 'Scots Gaelic', 'nativeName': 'Gàidhlig'}, |
| 38 | 'gl': {'name': 'Galician', 'nativeName': 'Galego'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 39 | 'gn': {'name': 'Guarani', 'nativeName': 'Avañeẽ'}, |
| 40 | 'gom': {'name': 'Konkani', 'nativeName': 'कोंकणी'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 41 | '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ínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 52 | 'ilo': {'name': 'Ilocano', 'nativeName': 'Ilokano'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 53 | 'is': {'name': 'Icelandic', 'nativeName': 'Íslenska'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 54 | 'it': {'name': 'Italian', 'nativeName': 'Italiano'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 55 | 'iw': {'name': 'Hebrew', 'nativeName': 'עברית'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 56 | 'ja': {'name': 'Japanese', 'nativeName': '日本語 (にほんご/にっぽんご)'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 57 | 'jw': {'name': 'Javanese', 'nativeName': 'basa Jawa'}, |
| 58 | 'ka': {'name': 'Georgian', 'nativeName': 'ქართული'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 59 | 'kk': {'name': 'Kazakh', 'nativeName': 'Қазақ тілі'}, |
| 60 | 'km': {'name': 'Khmer', 'nativeName': 'ភាសាខ្មែរ'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 61 | 'kn': {'name': 'Kannada', 'nativeName': 'ಕನ್ನಡ'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 62 | 'ko': {'name': 'Korean', 'nativeName': '한국어 (韓國語)'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 63 | 'kri': {'name': 'Krio', 'nativeName': 'Krio'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 64 | 'ku': {'name': 'Kurdish (Kurmanji)', 'nativeName': 'Kurdî'}, |
| 65 | 'ky': {'name': 'Kyrgyz', 'nativeName': 'кыргыз тили'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 66 | 'la': {'name': 'Latin', 'nativeName': 'latine'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 67 | 'lb': {'name': 'Luxembourgish', 'nativeName': 'Lëtzebuergesch'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 68 | 'lg': {'name': 'Luganda', 'nativeName': 'Luganda'}, |
| 69 | 'ln': {'name': 'Lingala', 'nativeName': 'Lingála'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 70 | 'lo': {'name': 'Lao', 'nativeName': 'ພາສາລາວ'}, |
| 71 | 'lt': {'name': 'Lithuanian', 'nativeName': 'lietuvių kalba'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 72 | 'lus': {'name': 'Mizo', 'nativeName': 'Mizo ṭawng'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 73 | 'lv': {'name': 'Latvian', 'nativeName': 'latviešu valoda'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 74 | 'mai': {'name': 'Maithili', 'nativeName': 'मैथिली'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 75 | 'mg': {'name': 'Malagasy', 'nativeName': 'Malagasy fiteny'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 76 | 'mi': {'name': 'Maori', 'nativeName': 'te reo Māori'}, |
| 77 | 'mk': {'name': 'Macedonian', 'nativeName': 'македонски јазик'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 78 | 'ml': {'name': 'Malayalam', 'nativeName': 'മലയാളം'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 79 | 'mn': {'name': 'Mongolian', 'nativeName': 'монгол'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 80 | 'mni-Mtei': {'name': 'Meiteilon (Manipuri)', 'nativeName': 'ꯃꯤꯇꯩꯂꯣꯟ'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 81 | 'mr': {'name': 'Marathi', 'nativeName': 'मराठी'}, |
| 82 | 'ms': {'name': 'Malay', 'nativeName': 'bahasa Melayu'}, |
| 83 | 'mt': {'name': 'Maltese', 'nativeName': 'Malti'}, |
| 84 | 'my': {'name': 'Myanmar (Burmese)', 'nativeName': 'ဗမာစာ'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 85 | 'ne': {'name': 'Nepali', 'nativeName': 'नेपाली'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 86 | 'nl': {'name': 'Dutch', 'nativeName': 'Nederlands'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 87 | 'no': {'name': 'Norwegian', 'nativeName': 'Norsk'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 88 | 'nso': {'name': 'Sepedi', 'nativeName': 'Pedi'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 89 | 'ny': {'name': 'Chichewa', 'nativeName': 'chiCheŵa'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 90 | 'om': {'name': 'Oromo', 'nativeName': 'Afaan Oromoo'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 91 | 'or': {'name': 'Odia (Oriya)', 'nativeName': 'ଓଡ଼ିଆ'}, |
| 92 | 'pa': {'name': 'Punjabi', 'nativeName': 'ਪੰਜਾਬੀ'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 93 | 'pl': {'name': 'Polish', 'nativeName': 'polski'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 94 | 'ps': {'name': 'Pashto', 'nativeName': 'پښتو'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 95 | 'pt': {'name': 'Portuguese', 'nativeName': 'Português'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 96 | 'qu': {'name': 'Quechua', 'nativeName': 'Runa Simi'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 97 | 'ro': {'name': 'Romanian', 'nativeName': 'română'}, |
| 98 | 'ru': {'name': 'Russian', 'nativeName': 'русский язык'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 99 | 'rw': {'name': 'Kinyarwanda', 'nativeName': 'Ikinyarwanda'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 100 | 'sa': {'name': 'Sanskrit', 'nativeName': 'संस्कृतम्'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 101 | 'sd': {'name': 'Sindhi', 'nativeName': 'सिन्धी'}, |
| 102 | 'si': {'name': 'Sinhala', 'nativeName': 'සිංහල'}, |
| 103 | 'sk': {'name': 'Slovak', 'nativeName': 'slovenčina'}, |
| 104 | 'sl': {'name': 'Slovenian', 'nativeName': 'slovenščina'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 105 | 'sm': {'name': 'Samoan', 'nativeName': 'gagana faa Samoa'}, |
| 106 | 'sn': {'name': 'Shona', 'nativeName': 'chiShona'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 107 | 'so': {'name': 'Somali', 'nativeName': 'Soomaaliga'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 108 | 'sq': {'name': 'Albanian', 'nativeName': 'Shqip'}, |
| 109 | 'sr': {'name': 'Serbian', 'nativeName': 'српски језик'}, |
| 110 | 'st': {'name': 'Sesotho', 'nativeName': 'Sesotho'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 111 | 'su': {'name': 'Sundanese', 'nativeName': 'Basa Sunda'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 112 | 'sv': {'name': 'Swedish', 'nativeName': 'svenska'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 113 | 'sw': {'name': 'Swahili', 'nativeName': 'Kiswahili'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 114 | 'ta': {'name': 'Tamil', 'nativeName': 'தமிழ்'}, |
| 115 | 'te': {'name': 'Telugu', 'nativeName': 'తెలుగు'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 116 | 'tg': {'name': 'Tajik', 'nativeName': 'тоҷикӣ'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 117 | 'th': {'name': 'Thai', 'nativeName': 'ไทย'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 118 | 'ti': {'name': 'Tigrinya', 'nativeName': 'ትግርኛ'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 119 | 'tk': {'name': 'Turkmen', 'nativeName': 'Türkmen'}, |
| 120 | 'tl': {'name': 'Filipino', 'nativeName': 'Wikang Tagalog'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 121 | 'tr': {'name': 'Turkish', 'nativeName': 'Türkçe'}, |
Adrià Vilanova Martínez | 91a6d9c | 2022-05-23 17:49:02 +0200 | [diff] [blame] | 122 | 'ts': {'name': 'Tsonga', 'nativeName': 'Xitsonga'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 123 | 'tt': {'name': 'Tatar', 'nativeName': 'татарча'}, |
| 124 | 'ug': {'name': 'Uyghur', 'nativeName': 'Uyƣurqə'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 125 | 'uk': {'name': 'Ukrainian', 'nativeName': 'українська'}, |
| 126 | 'ur': {'name': 'Urdu', 'nativeName': 'اردو'}, |
| 127 | 'uz': {'name': 'Uzbek', 'nativeName': 'zbek'}, |
| 128 | 'vi': {'name': 'Vietnamese', 'nativeName': 'Tiếng Việt'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 129 | 'xh': {'name': 'Xhosa', 'nativeName': 'isiXhosa'}, |
| 130 | 'yi': {'name': 'Yiddish', 'nativeName': 'ייִדיש'}, |
| 131 | 'yo': {'name': 'Yoruba', 'nativeName': 'Yorùbá'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 132 | 'zh-CN': {'name': 'Chinese (Simplified)', 'nativeName': '汉语'}, |
| 133 | 'zh-TW': {'name': 'Chinese (Traditional)', 'nativeName': '漢語'}, |
avm99963 | f65e9bf | 2020-12-29 12:57:16 +0100 | [diff] [blame] | 134 | '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ínez | a197d86 | 2022-05-27 17:33:20 +0200 | [diff] [blame] | 139 | export const convertLanguages = { |
avm99963 | f65e9bf | 2020-12-29 12:57:16 +0100 | [diff] [blame] | 140 | 'jv': 'jw', |
| 141 | 'zh': 'zh-CN', |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 142 | }; |