blob: fa8445ce36b69ef2c3e82fdaf837f9b17170ccaa [file] [log] [blame]
avm99963ce257a92020-12-27 00:07:13 +01001var isoLangs = {
2 'af': {'name': 'Afrikaans', 'nativeName': 'Afrikaans'},
avm99963ce257a92020-12-27 00:07:13 +01003 'am': {'name': 'Amharic', 'nativeName': 'አማርኛ'},
4 'ar': {'name': 'Arabic', 'nativeName': 'العربية'},
avm99963ce257a92020-12-27 00:07:13 +01005 'az': {'name': 'Azerbaijani', 'nativeName': 'azərbaycan dili'},
avm99963ce257a92020-12-27 00:07:13 +01006 'be': {'name': 'Belarusian', 'nativeName': 'Беларуская'},
avm999630f961162020-12-27 13:12:27 +01007 'bg': {'name': 'Bulgarian', 'nativeName': 'български език'},
avm99963ce257a92020-12-27 00:07:13 +01008 'bn': {'name': 'Bengali', 'nativeName': 'বাংলা'},
9 'bs': {'name': 'Bosnian', 'nativeName': 'bosanski jezik'},
avm99963ce257a92020-12-27 00:07:13 +010010 'ca': {'name': 'Catalan', 'nativeName': 'Català'},
avm999630f961162020-12-27 13:12:27 +010011 'ceb': {'name': 'Cebuano', 'nativeName': 'Binisaya'},
avm99963ce257a92020-12-27 00:07:13 +010012 'co': {'name': 'Corsican', 'nativeName': 'corsu'},
avm99963ce257a92020-12-27 00:07:13 +010013 'cs': {'name': 'Czech', 'nativeName': 'česky'},
avm999630f961162020-12-27 13:12:27 +010014 'cy': {'name': 'Welsh', 'nativeName': 'Cymraeg'},
avm99963ce257a92020-12-27 00:07:13 +010015 'da': {'name': 'Danish', 'nativeName': 'dansk'},
avm999630f961162020-12-27 13:12:27 +010016 'de': {'name': 'German', 'nativeName': 'Deutsch'},
17 'el': {'name': 'Greek', 'nativeName': 'Ελληνικά'},
avm99963ce257a92020-12-27 00:07:13 +010018 'en': {'name': 'English', 'nativeName': 'English'},
19 'eo': {'name': 'Esperanto', 'nativeName': 'Esperanto'},
avm999630f961162020-12-27 13:12:27 +010020 'es': {'name': 'Spanish', 'nativeName': 'español'},
avm99963ce257a92020-12-27 00:07:13 +010021 'et': {'name': 'Estonian', 'nativeName': 'eesti'},
avm999630f961162020-12-27 13:12:27 +010022 'eu': {'name': 'Basque', 'nativeName': 'euskara'},
23 'fa': {'name': 'Persian', 'nativeName': 'فارسی'},
avm99963ce257a92020-12-27 00:07:13 +010024 'fi': {'name': 'Finnish', 'nativeName': 'suomi'},
25 'fr': {'name': 'French', 'nativeName': 'français'},
26 'fy': {'name': 'Frisian', 'nativeName': 'Frysk'},
avm99963ce257a92020-12-27 00:07:13 +010027 'ga': {'name': 'Irish', 'nativeName': 'Gaeilge'},
avm999630f961162020-12-27 13:12:27 +010028 'gd': {'name': 'Scots Gaelic', 'nativeName': 'Gàidhlig'},
29 'gl': {'name': 'Galician', 'nativeName': 'Galego'},
30 'gu': {'name': 'Gujarati', 'nativeName': 'ગુજરાતી'},
31 'ha': {'name': 'Hausa', 'nativeName': 'Hausa'},
32 'haw': {'name': 'Hawaiian', 'nativeName': 'ʻŌlelo Hawaiʻi'},
33 'hi': {'name': 'Hindi', 'nativeName': 'हिन्दी'},
34 'hmn': {'name': 'Hmong', 'nativeName': 'Hmoob'},
35 'hr': {'name': 'Croatian', 'nativeName': 'hrvatski'},
36 'ht': {'name': 'Haitian Creole', 'nativeName': 'Kreyòl ayisyen'},
37 'hu': {'name': 'Hungarian', 'nativeName': 'Magyar'},
38 'hy': {'name': 'Armenian', 'nativeName': 'Հայերեն'},
39 'id': {'name': 'Indonesian', 'nativeName': 'Bahasa Indonesia'},
40 'ig': {'name': 'Igbo', 'nativeName': 'Asụsụ Igbo'},
41 'is': {'name': 'Icelandic', 'nativeName': 'Íslenska'},
avm99963ce257a92020-12-27 00:07:13 +010042 'it': {'name': 'Italian', 'nativeName': 'Italiano'},
avm999630f961162020-12-27 13:12:27 +010043 'iw': {'name': 'Hebrew', 'nativeName': 'עברית'},
avm99963ce257a92020-12-27 00:07:13 +010044 'ja': {'name': 'Japanese', 'nativeName': '日本語 (にほんご/にっぽんご)'},
avm999630f961162020-12-27 13:12:27 +010045 'jw': {'name': 'Javanese', 'nativeName': 'basa Jawa'},
46 'ka': {'name': 'Georgian', 'nativeName': 'ქართული'},
avm99963ce257a92020-12-27 00:07:13 +010047 'kk': {'name': 'Kazakh', 'nativeName': 'Қазақ тілі'},
48 'km': {'name': 'Khmer', 'nativeName': 'ភាសាខ្មែរ'},
avm999630f961162020-12-27 13:12:27 +010049 'kn': {'name': 'Kannada', 'nativeName': 'ಕನ್ನಡ'},
avm99963ce257a92020-12-27 00:07:13 +010050 'ko': {'name': 'Korean', 'nativeName': '한국어 (韓國語)'},
51 'ku': {'name': 'Kurdish (Kurmanji)', 'nativeName': 'Kurdî'},
52 'ky': {'name': 'Kyrgyz', 'nativeName': 'кыргыз тили'},
avm99963ce257a92020-12-27 00:07:13 +010053 'la': {'name': 'Latin', 'nativeName': 'latine'},
avm99963ce257a92020-12-27 00:07:13 +010054 'lb': {'name': 'Luxembourgish', 'nativeName': 'Lëtzebuergesch'},
avm999630f961162020-12-27 13:12:27 +010055 'lo': {'name': 'Lao', 'nativeName': 'ພາສາລາວ'},
56 'lt': {'name': 'Lithuanian', 'nativeName': 'lietuvių kalba'},
57 'lv': {'name': 'Latvian', 'nativeName': 'latviešu valoda'},
avm99963ce257a92020-12-27 00:07:13 +010058 'mg': {'name': 'Malagasy', 'nativeName': 'Malagasy fiteny'},
avm999630f961162020-12-27 13:12:27 +010059 'mi': {'name': 'Maori', 'nativeName': 'te reo Māori'},
60 'mk': {'name': 'Macedonian', 'nativeName': 'македонски јазик'},
avm99963ce257a92020-12-27 00:07:13 +010061 'ml': {'name': 'Malayalam', 'nativeName': 'മലയാളം'},
avm99963ce257a92020-12-27 00:07:13 +010062 'mn': {'name': 'Mongolian', 'nativeName': 'монгол'},
avm999630f961162020-12-27 13:12:27 +010063 'mr': {'name': 'Marathi', 'nativeName': 'मराठी'},
64 'ms': {'name': 'Malay', 'nativeName': 'bahasa Melayu'},
65 'mt': {'name': 'Maltese', 'nativeName': 'Malti'},
66 'my': {'name': 'Myanmar (Burmese)', 'nativeName': 'ဗမာစာ'},
avm99963ce257a92020-12-27 00:07:13 +010067 'ne': {'name': 'Nepali', 'nativeName': 'नेपाली'},
avm999630f961162020-12-27 13:12:27 +010068 'nl': {'name': 'Dutch', 'nativeName': 'Nederlands'},
avm99963ce257a92020-12-27 00:07:13 +010069 'no': {'name': 'Norwegian', 'nativeName': 'Norsk'},
avm999630f961162020-12-27 13:12:27 +010070 'ny': {'name': 'Chichewa', 'nativeName': 'chiCheŵa'},
71 'or': {'name': 'Odia (Oriya)', 'nativeName': 'ଓଡ଼ିଆ'},
72 'pa': {'name': 'Punjabi', 'nativeName': 'ਪੰਜਾਬੀ'},
avm99963ce257a92020-12-27 00:07:13 +010073 'pl': {'name': 'Polish', 'nativeName': 'polski'},
avm999630f961162020-12-27 13:12:27 +010074 'ps': {'name': 'Pashto', 'nativeName': 'پښتو'},
avm99963ce257a92020-12-27 00:07:13 +010075 'pt': {'name': 'Portuguese', 'nativeName': 'Português'},
avm99963ce257a92020-12-27 00:07:13 +010076 'ro': {'name': 'Romanian', 'nativeName': 'română'},
77 'ru': {'name': 'Russian', 'nativeName': 'русский язык'},
avm999630f961162020-12-27 13:12:27 +010078 'rw': {'name': 'Kinyarwanda', 'nativeName': 'Ikinyarwanda'},
avm99963ce257a92020-12-27 00:07:13 +010079 'sd': {'name': 'Sindhi', 'nativeName': 'सिन्धी'},
80 'si': {'name': 'Sinhala', 'nativeName': 'සිංහල'},
81 'sk': {'name': 'Slovak', 'nativeName': 'slovenčina'},
82 'sl': {'name': 'Slovenian', 'nativeName': 'slovenščina'},
avm999630f961162020-12-27 13:12:27 +010083 'sm': {'name': 'Samoan', 'nativeName': 'gagana faa Samoa'},
84 'sn': {'name': 'Shona', 'nativeName': 'chiShona'},
avm99963ce257a92020-12-27 00:07:13 +010085 'so': {'name': 'Somali', 'nativeName': 'Soomaaliga'},
avm999630f961162020-12-27 13:12:27 +010086 'sq': {'name': 'Albanian', 'nativeName': 'Shqip'},
87 'sr': {'name': 'Serbian', 'nativeName': 'српски језик'},
88 'st': {'name': 'Sesotho', 'nativeName': 'Sesotho'},
avm99963ce257a92020-12-27 00:07:13 +010089 'su': {'name': 'Sundanese', 'nativeName': 'Basa Sunda'},
avm99963ce257a92020-12-27 00:07:13 +010090 'sv': {'name': 'Swedish', 'nativeName': 'svenska'},
avm999630f961162020-12-27 13:12:27 +010091 'sw': {'name': 'Swahili', 'nativeName': 'Kiswahili'},
avm99963ce257a92020-12-27 00:07:13 +010092 'ta': {'name': 'Tamil', 'nativeName': 'தமிழ்'},
93 'te': {'name': 'Telugu', 'nativeName': 'తెలుగు'},
avm999630f961162020-12-27 13:12:27 +010094 'tg': {'name': 'Tajik', 'nativeName': 'тоҷикӣ'},
avm99963ce257a92020-12-27 00:07:13 +010095 'th': {'name': 'Thai', 'nativeName': 'ไทย'},
avm999630f961162020-12-27 13:12:27 +010096 'tk': {'name': 'Turkmen', 'nativeName': 'Türkmen'},
97 'tl': {'name': 'Filipino', 'nativeName': 'Wikang Tagalog'},
avm99963ce257a92020-12-27 00:07:13 +010098 'tr': {'name': 'Turkish', 'nativeName': 'Türkçe'},
avm999630f961162020-12-27 13:12:27 +010099 'tt': {'name': 'Tatar', 'nativeName': 'татарча'},
100 'ug': {'name': 'Uyghur', 'nativeName': 'Uyƣurqə'},
avm99963ce257a92020-12-27 00:07:13 +0100101 'uk': {'name': 'Ukrainian', 'nativeName': 'українська'},
102 'ur': {'name': 'Urdu', 'nativeName': 'اردو'},
103 'uz': {'name': 'Uzbek', 'nativeName': 'zbek'},
104 'vi': {'name': 'Vietnamese', 'nativeName': 'Tiếng Việt'},
avm99963ce257a92020-12-27 00:07:13 +0100105 'xh': {'name': 'Xhosa', 'nativeName': 'isiXhosa'},
106 'yi': {'name': 'Yiddish', 'nativeName': 'ייִדיש'},
107 'yo': {'name': 'Yoruba', 'nativeName': 'Yorùbá'},
avm999630f961162020-12-27 13:12:27 +0100108 'zh-CN': {'name': 'Chinese (Simplified)', 'nativeName': '汉语'},
109 'zh-TW': {'name': 'Chinese (Traditional)', 'nativeName': '漢語'},
avm99963f65e9bf2020-12-29 12:57:16 +0100110 'zu': {'name': 'Zulu', 'nativeName': 'isiZulu'},
111};
112
113// Some languages were incorrectly set. This map serves as a conversion between
114// the previous wrong languages and the correct code.
115var convertLanguages = {
116 'jv': 'jw',
117 'zh': 'zh-CN',
avm99963ce257a92020-12-27 00:07:13 +0100118};