blob: 9ec4dc46a26ae403a010fe242d6c7b3e4762c977 [file] [log] [blame]
Adrià Vilanova Martínez2b50e912022-06-01 00:05:40 +02001export interface IsoLang {
Adrià Vilanova Martínez5bdc4732022-05-31 20:12:21 +02002 name: string;
3 nativeName: string;
Adrià Vilanova Martínez2b50e912022-06-01 00:05:40 +02004}
5export interface IsoLangs {
Adrià Vilanova Martínez5bdc4732022-05-31 20:12:21 +02006 [key: string]: IsoLang;
Adrià Vilanova Martínez2b50e912022-06-01 00:05:40 +02007}
Adrià Vilanova Martínez5bdc4732022-05-31 20:12:21 +02008
9export const isoLangs: IsoLangs = {
avm99963ce257a92020-12-27 00:07:13 +010010 'af': {'name': 'Afrikaans', 'nativeName': 'Afrikaans'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020011 'ak': {'name': 'Twi', 'nativeName': 'Akan'},
avm99963ce257a92020-12-27 00:07:13 +010012 'am': {'name': 'Amharic', 'nativeName': 'አማርኛ'},
13 'ar': {'name': 'Arabic', 'nativeName': 'العربية'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020014 'as': {'name': 'Assamese', 'nativeName': 'অসমীয়া'},
15 'ay': {'name': 'Aymara', 'nativeName': 'aymar aru'},
avm99963ce257a92020-12-27 00:07:13 +010016 'az': {'name': 'Azerbaijani', 'nativeName': 'azərbaycan dili'},
avm99963ce257a92020-12-27 00:07:13 +010017 'be': {'name': 'Belarusian', 'nativeName': 'Беларуская'},
avm999630f961162020-12-27 13:12:27 +010018 'bg': {'name': 'Bulgarian', 'nativeName': 'български език'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020019 'bho': {'name': 'Bhojpuri', 'nativeName': 'भोजपुरी'},
20 'bm': {'name': 'Bambara', 'nativeName': 'bamanankan'},
avm99963ce257a92020-12-27 00:07:13 +010021 'bn': {'name': 'Bengali', 'nativeName': 'বাংলা'},
22 'bs': {'name': 'Bosnian', 'nativeName': 'bosanski jezik'},
avm99963ce257a92020-12-27 00:07:13 +010023 'ca': {'name': 'Catalan', 'nativeName': 'Català'},
avm999630f961162020-12-27 13:12:27 +010024 'ceb': {'name': 'Cebuano', 'nativeName': 'Binisaya'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020025 'ckb': {'name': 'Kurdish (Sorani)', 'nativeName': 'کوردیی ناوەندی'},
avm99963ce257a92020-12-27 00:07:13 +010026 'co': {'name': 'Corsican', 'nativeName': 'corsu'},
avm99963ce257a92020-12-27 00:07:13 +010027 'cs': {'name': 'Czech', 'nativeName': 'česky'},
avm999630f961162020-12-27 13:12:27 +010028 'cy': {'name': 'Welsh', 'nativeName': 'Cymraeg'},
avm99963ce257a92020-12-27 00:07:13 +010029 'da': {'name': 'Danish', 'nativeName': 'dansk'},
avm999630f961162020-12-27 13:12:27 +010030 'de': {'name': 'German', 'nativeName': 'Deutsch'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020031 'doi': {'name': 'Dogri', 'nativeName': '𑠖𑠵𑠌𑠤𑠮'},
32 'dv': {'name': 'Dhivehi', 'nativeName': 'ދިވެހި'},
33 'ee': {'name': 'Ewe', 'nativeName': 'Eʋegbe'},
avm999630f961162020-12-27 13:12:27 +010034 'el': {'name': 'Greek', 'nativeName': 'Ελληνικά'},
avm99963ce257a92020-12-27 00:07:13 +010035 'en': {'name': 'English', 'nativeName': 'English'},
36 'eo': {'name': 'Esperanto', 'nativeName': 'Esperanto'},
avm999630f961162020-12-27 13:12:27 +010037 'es': {'name': 'Spanish', 'nativeName': 'español'},
avm99963ce257a92020-12-27 00:07:13 +010038 'et': {'name': 'Estonian', 'nativeName': 'eesti'},
avm999630f961162020-12-27 13:12:27 +010039 'eu': {'name': 'Basque', 'nativeName': 'euskara'},
40 'fa': {'name': 'Persian', 'nativeName': 'فارسی'},
avm99963ce257a92020-12-27 00:07:13 +010041 'fi': {'name': 'Finnish', 'nativeName': 'suomi'},
42 'fr': {'name': 'French', 'nativeName': 'français'},
43 'fy': {'name': 'Frisian', 'nativeName': 'Frysk'},
avm99963ce257a92020-12-27 00:07:13 +010044 'ga': {'name': 'Irish', 'nativeName': 'Gaeilge'},
avm999630f961162020-12-27 13:12:27 +010045 'gd': {'name': 'Scots Gaelic', 'nativeName': 'Gàidhlig'},
46 'gl': {'name': 'Galician', 'nativeName': 'Galego'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020047 'gn': {'name': 'Guarani', 'nativeName': 'Avañeẽ'},
48 'gom': {'name': 'Konkani', 'nativeName': 'कोंकणी'},
avm999630f961162020-12-27 13:12:27 +010049 '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ínez91a6d9c2022-05-23 17:49:02 +020060 'ilo': {'name': 'Ilocano', 'nativeName': 'Ilokano'},
avm999630f961162020-12-27 13:12:27 +010061 'is': {'name': 'Icelandic', 'nativeName': 'Íslenska'},
avm99963ce257a92020-12-27 00:07:13 +010062 'it': {'name': 'Italian', 'nativeName': 'Italiano'},
avm999630f961162020-12-27 13:12:27 +010063 'iw': {'name': 'Hebrew', 'nativeName': 'עברית'},
avm99963ce257a92020-12-27 00:07:13 +010064 'ja': {'name': 'Japanese', 'nativeName': '日本語 (にほんご/にっぽんご)'},
avm999630f961162020-12-27 13:12:27 +010065 'jw': {'name': 'Javanese', 'nativeName': 'basa Jawa'},
66 'ka': {'name': 'Georgian', 'nativeName': 'ქართული'},
avm99963ce257a92020-12-27 00:07:13 +010067 'kk': {'name': 'Kazakh', 'nativeName': 'Қазақ тілі'},
68 'km': {'name': 'Khmer', 'nativeName': 'ភាសាខ្មែរ'},
avm999630f961162020-12-27 13:12:27 +010069 'kn': {'name': 'Kannada', 'nativeName': 'ಕನ್ನಡ'},
avm99963ce257a92020-12-27 00:07:13 +010070 'ko': {'name': 'Korean', 'nativeName': '한국어 (韓國語)'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020071 'kri': {'name': 'Krio', 'nativeName': 'Krio'},
avm99963ce257a92020-12-27 00:07:13 +010072 'ku': {'name': 'Kurdish (Kurmanji)', 'nativeName': 'Kurdî'},
73 'ky': {'name': 'Kyrgyz', 'nativeName': 'кыргыз тили'},
avm99963ce257a92020-12-27 00:07:13 +010074 'la': {'name': 'Latin', 'nativeName': 'latine'},
avm99963ce257a92020-12-27 00:07:13 +010075 'lb': {'name': 'Luxembourgish', 'nativeName': 'Lëtzebuergesch'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020076 'lg': {'name': 'Luganda', 'nativeName': 'Luganda'},
77 'ln': {'name': 'Lingala', 'nativeName': 'Lingála'},
avm999630f961162020-12-27 13:12:27 +010078 'lo': {'name': 'Lao', 'nativeName': 'ພາສາລາວ'},
79 'lt': {'name': 'Lithuanian', 'nativeName': 'lietuvių kalba'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020080 'lus': {'name': 'Mizo', 'nativeName': 'Mizo ṭawng'},
avm999630f961162020-12-27 13:12:27 +010081 'lv': {'name': 'Latvian', 'nativeName': 'latviešu valoda'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020082 'mai': {'name': 'Maithili', 'nativeName': 'मैथिली'},
avm99963ce257a92020-12-27 00:07:13 +010083 'mg': {'name': 'Malagasy', 'nativeName': 'Malagasy fiteny'},
avm999630f961162020-12-27 13:12:27 +010084 'mi': {'name': 'Maori', 'nativeName': 'te reo Māori'},
85 'mk': {'name': 'Macedonian', 'nativeName': 'македонски јазик'},
avm99963ce257a92020-12-27 00:07:13 +010086 'ml': {'name': 'Malayalam', 'nativeName': 'മലയാളം'},
avm99963ce257a92020-12-27 00:07:13 +010087 'mn': {'name': 'Mongolian', 'nativeName': 'монгол'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020088 'mni-Mtei': {'name': 'Meiteilon (Manipuri)', 'nativeName': 'ꯃꯤꯇꯩꯂꯣꯟ'},
avm999630f961162020-12-27 13:12:27 +010089 'mr': {'name': 'Marathi', 'nativeName': 'मराठी'},
90 'ms': {'name': 'Malay', 'nativeName': 'bahasa Melayu'},
91 'mt': {'name': 'Maltese', 'nativeName': 'Malti'},
92 'my': {'name': 'Myanmar (Burmese)', 'nativeName': 'ဗမာစာ'},
avm99963ce257a92020-12-27 00:07:13 +010093 'ne': {'name': 'Nepali', 'nativeName': 'नेपाली'},
avm999630f961162020-12-27 13:12:27 +010094 'nl': {'name': 'Dutch', 'nativeName': 'Nederlands'},
avm99963ce257a92020-12-27 00:07:13 +010095 'no': {'name': 'Norwegian', 'nativeName': 'Norsk'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020096 'nso': {'name': 'Sepedi', 'nativeName': 'Pedi'},
avm999630f961162020-12-27 13:12:27 +010097 'ny': {'name': 'Chichewa', 'nativeName': 'chiCheŵa'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +020098 'om': {'name': 'Oromo', 'nativeName': 'Afaan Oromoo'},
avm999630f961162020-12-27 13:12:27 +010099 'or': {'name': 'Odia (Oriya)', 'nativeName': 'ଓଡ଼ିଆ'},
100 'pa': {'name': 'Punjabi', 'nativeName': 'ਪੰਜਾਬੀ'},
avm99963ce257a92020-12-27 00:07:13 +0100101 'pl': {'name': 'Polish', 'nativeName': 'polski'},
avm999630f961162020-12-27 13:12:27 +0100102 'ps': {'name': 'Pashto', 'nativeName': 'پښتو'},
avm99963ce257a92020-12-27 00:07:13 +0100103 'pt': {'name': 'Portuguese', 'nativeName': 'Português'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +0200104 'qu': {'name': 'Quechua', 'nativeName': 'Runa Simi'},
avm99963ce257a92020-12-27 00:07:13 +0100105 'ro': {'name': 'Romanian', 'nativeName': 'română'},
106 'ru': {'name': 'Russian', 'nativeName': 'русский язык'},
avm999630f961162020-12-27 13:12:27 +0100107 'rw': {'name': 'Kinyarwanda', 'nativeName': 'Ikinyarwanda'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +0200108 'sa': {'name': 'Sanskrit', 'nativeName': 'संस्कृतम्'},
avm99963ce257a92020-12-27 00:07:13 +0100109 'sd': {'name': 'Sindhi', 'nativeName': 'सिन्धी'},
110 'si': {'name': 'Sinhala', 'nativeName': 'සිංහල'},
111 'sk': {'name': 'Slovak', 'nativeName': 'slovenčina'},
112 'sl': {'name': 'Slovenian', 'nativeName': 'slovenščina'},
avm999630f961162020-12-27 13:12:27 +0100113 'sm': {'name': 'Samoan', 'nativeName': 'gagana faa Samoa'},
114 'sn': {'name': 'Shona', 'nativeName': 'chiShona'},
avm99963ce257a92020-12-27 00:07:13 +0100115 'so': {'name': 'Somali', 'nativeName': 'Soomaaliga'},
avm999630f961162020-12-27 13:12:27 +0100116 'sq': {'name': 'Albanian', 'nativeName': 'Shqip'},
117 'sr': {'name': 'Serbian', 'nativeName': 'српски језик'},
118 'st': {'name': 'Sesotho', 'nativeName': 'Sesotho'},
avm99963ce257a92020-12-27 00:07:13 +0100119 'su': {'name': 'Sundanese', 'nativeName': 'Basa Sunda'},
avm99963ce257a92020-12-27 00:07:13 +0100120 'sv': {'name': 'Swedish', 'nativeName': 'svenska'},
avm999630f961162020-12-27 13:12:27 +0100121 'sw': {'name': 'Swahili', 'nativeName': 'Kiswahili'},
avm99963ce257a92020-12-27 00:07:13 +0100122 'ta': {'name': 'Tamil', 'nativeName': 'தமிழ்'},
123 'te': {'name': 'Telugu', 'nativeName': 'తెలుగు'},
avm999630f961162020-12-27 13:12:27 +0100124 'tg': {'name': 'Tajik', 'nativeName': 'тоҷикӣ'},
avm99963ce257a92020-12-27 00:07:13 +0100125 'th': {'name': 'Thai', 'nativeName': 'ไทย'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +0200126 'ti': {'name': 'Tigrinya', 'nativeName': 'ትግርኛ'},
avm999630f961162020-12-27 13:12:27 +0100127 'tk': {'name': 'Turkmen', 'nativeName': 'Türkmen'},
128 'tl': {'name': 'Filipino', 'nativeName': 'Wikang Tagalog'},
avm99963ce257a92020-12-27 00:07:13 +0100129 'tr': {'name': 'Turkish', 'nativeName': 'Türkçe'},
Adrià Vilanova Martínez91a6d9c2022-05-23 17:49:02 +0200130 'ts': {'name': 'Tsonga', 'nativeName': 'Xitsonga'},
avm999630f961162020-12-27 13:12:27 +0100131 'tt': {'name': 'Tatar', 'nativeName': 'татарча'},
132 'ug': {'name': 'Uyghur', 'nativeName': 'Uyƣurqə'},
avm99963ce257a92020-12-27 00:07:13 +0100133 'uk': {'name': 'Ukrainian', 'nativeName': 'українська'},
134 'ur': {'name': 'Urdu', 'nativeName': 'اردو'},
135 'uz': {'name': 'Uzbek', 'nativeName': 'zbek'},
136 'vi': {'name': 'Vietnamese', 'nativeName': 'Tiếng Việt'},
avm99963ce257a92020-12-27 00:07:13 +0100137 'xh': {'name': 'Xhosa', 'nativeName': 'isiXhosa'},
138 'yi': {'name': 'Yiddish', 'nativeName': 'ייִדיש'},
139 'yo': {'name': 'Yoruba', 'nativeName': 'Yorùbá'},
avm999630f961162020-12-27 13:12:27 +0100140 'zh-CN': {'name': 'Chinese (Simplified)', 'nativeName': '汉语'},
141 'zh-TW': {'name': 'Chinese (Traditional)', 'nativeName': '漢語'},
avm99963f65e9bf2020-12-29 12:57:16 +0100142 'zu': {'name': 'Zulu', 'nativeName': 'isiZulu'},
143};
144
Adrià Vilanova Martínez5bdc4732022-05-31 20:12:21 +0200145interface LanguageDictionary {
146 [key: string]: string;
147};
148
avm99963f65e9bf2020-12-29 12:57:16 +0100149// Some languages were incorrectly set. This map serves as a conversion between
150// the previous wrong languages and the correct code.
Adrià Vilanova Martínez5bdc4732022-05-31 20:12:21 +0200151export const convertLanguages: LanguageDictionary = {
avm99963f65e9bf2020-12-29 12:57:16 +0100152 'jv': 'jw',
153 'zh': 'zh-CN',
avm99963ce257a92020-12-27 00:07:13 +0100154};