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