avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 1 | var isoLangs = { |
| 2 | 'af': {'name': 'Afrikaans', 'nativeName': 'Afrikaans'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 3 | 'am': {'name': 'Amharic', 'nativeName': 'አማርኛ'}, |
| 4 | 'ar': {'name': 'Arabic', 'nativeName': 'العربية'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 5 | 'az': {'name': 'Azerbaijani', 'nativeName': 'azərbaycan dili'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 6 | 'be': {'name': 'Belarusian', 'nativeName': 'Беларуская'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 7 | 'bg': {'name': 'Bulgarian', 'nativeName': 'български език'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 8 | 'bn': {'name': 'Bengali', 'nativeName': 'বাংলা'}, |
| 9 | 'bs': {'name': 'Bosnian', 'nativeName': 'bosanski jezik'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 10 | 'ca': {'name': 'Catalan', 'nativeName': 'Català'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 11 | 'ceb': {'name': 'Cebuano', 'nativeName': 'Binisaya'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 12 | 'co': {'name': 'Corsican', 'nativeName': 'corsu'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 13 | 'cs': {'name': 'Czech', 'nativeName': 'česky'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 14 | 'cy': {'name': 'Welsh', 'nativeName': 'Cymraeg'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 15 | 'da': {'name': 'Danish', 'nativeName': 'dansk'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 16 | 'de': {'name': 'German', 'nativeName': 'Deutsch'}, |
| 17 | 'el': {'name': 'Greek', 'nativeName': 'Ελληνικά'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 18 | 'en': {'name': 'English', 'nativeName': 'English'}, |
| 19 | 'eo': {'name': 'Esperanto', 'nativeName': 'Esperanto'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 20 | 'es': {'name': 'Spanish', 'nativeName': 'español'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 21 | 'et': {'name': 'Estonian', 'nativeName': 'eesti'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 22 | 'eu': {'name': 'Basque', 'nativeName': 'euskara'}, |
| 23 | 'fa': {'name': 'Persian', 'nativeName': 'فارسی'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 24 | 'fi': {'name': 'Finnish', 'nativeName': 'suomi'}, |
| 25 | 'fr': {'name': 'French', 'nativeName': 'français'}, |
| 26 | 'fy': {'name': 'Frisian', 'nativeName': 'Frysk'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 27 | 'ga': {'name': 'Irish', 'nativeName': 'Gaeilge'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 28 | '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'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 42 | 'it': {'name': 'Italian', 'nativeName': 'Italiano'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 43 | 'iw': {'name': 'Hebrew', 'nativeName': 'עברית'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 44 | 'ja': {'name': 'Japanese', 'nativeName': '日本語 (にほんご/にっぽんご)'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 45 | 'jw': {'name': 'Javanese', 'nativeName': 'basa Jawa'}, |
| 46 | 'ka': {'name': 'Georgian', 'nativeName': 'ქართული'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 47 | 'kk': {'name': 'Kazakh', 'nativeName': 'Қазақ тілі'}, |
| 48 | 'km': {'name': 'Khmer', 'nativeName': 'ភាសាខ្មែរ'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 49 | 'kn': {'name': 'Kannada', 'nativeName': 'ಕನ್ನಡ'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 50 | 'ko': {'name': 'Korean', 'nativeName': '한국어 (韓國語)'}, |
| 51 | 'ku': {'name': 'Kurdish (Kurmanji)', 'nativeName': 'Kurdî'}, |
| 52 | 'ky': {'name': 'Kyrgyz', 'nativeName': 'кыргыз тили'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 53 | 'la': {'name': 'Latin', 'nativeName': 'latine'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 54 | 'lb': {'name': 'Luxembourgish', 'nativeName': 'Lëtzebuergesch'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 55 | 'lo': {'name': 'Lao', 'nativeName': 'ພາສາລາວ'}, |
| 56 | 'lt': {'name': 'Lithuanian', 'nativeName': 'lietuvių kalba'}, |
| 57 | 'lv': {'name': 'Latvian', 'nativeName': 'latviešu valoda'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 58 | 'mg': {'name': 'Malagasy', 'nativeName': 'Malagasy fiteny'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 59 | 'mi': {'name': 'Maori', 'nativeName': 'te reo Māori'}, |
| 60 | 'mk': {'name': 'Macedonian', 'nativeName': 'македонски јазик'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 61 | 'ml': {'name': 'Malayalam', 'nativeName': 'മലയാളം'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 62 | 'mn': {'name': 'Mongolian', 'nativeName': 'монгол'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 63 | 'mr': {'name': 'Marathi', 'nativeName': 'मराठी'}, |
| 64 | 'ms': {'name': 'Malay', 'nativeName': 'bahasa Melayu'}, |
| 65 | 'mt': {'name': 'Maltese', 'nativeName': 'Malti'}, |
| 66 | 'my': {'name': 'Myanmar (Burmese)', 'nativeName': 'ဗမာစာ'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 67 | 'ne': {'name': 'Nepali', 'nativeName': 'नेपाली'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 68 | 'nl': {'name': 'Dutch', 'nativeName': 'Nederlands'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 69 | 'no': {'name': 'Norwegian', 'nativeName': 'Norsk'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 70 | 'ny': {'name': 'Chichewa', 'nativeName': 'chiCheŵa'}, |
| 71 | 'or': {'name': 'Odia (Oriya)', 'nativeName': 'ଓଡ଼ିଆ'}, |
| 72 | 'pa': {'name': 'Punjabi', 'nativeName': 'ਪੰਜਾਬੀ'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 73 | 'pl': {'name': 'Polish', 'nativeName': 'polski'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 74 | 'ps': {'name': 'Pashto', 'nativeName': 'پښتو'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 75 | 'pt': {'name': 'Portuguese', 'nativeName': 'Português'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 76 | 'ro': {'name': 'Romanian', 'nativeName': 'română'}, |
| 77 | 'ru': {'name': 'Russian', 'nativeName': 'русский язык'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 78 | 'rw': {'name': 'Kinyarwanda', 'nativeName': 'Ikinyarwanda'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 79 | 'sd': {'name': 'Sindhi', 'nativeName': 'सिन्धी'}, |
| 80 | 'si': {'name': 'Sinhala', 'nativeName': 'සිංහල'}, |
| 81 | 'sk': {'name': 'Slovak', 'nativeName': 'slovenčina'}, |
| 82 | 'sl': {'name': 'Slovenian', 'nativeName': 'slovenščina'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 83 | 'sm': {'name': 'Samoan', 'nativeName': 'gagana faa Samoa'}, |
| 84 | 'sn': {'name': 'Shona', 'nativeName': 'chiShona'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 85 | 'so': {'name': 'Somali', 'nativeName': 'Soomaaliga'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 86 | 'sq': {'name': 'Albanian', 'nativeName': 'Shqip'}, |
| 87 | 'sr': {'name': 'Serbian', 'nativeName': 'српски језик'}, |
| 88 | 'st': {'name': 'Sesotho', 'nativeName': 'Sesotho'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 89 | 'su': {'name': 'Sundanese', 'nativeName': 'Basa Sunda'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 90 | 'sv': {'name': 'Swedish', 'nativeName': 'svenska'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 91 | 'sw': {'name': 'Swahili', 'nativeName': 'Kiswahili'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 92 | 'ta': {'name': 'Tamil', 'nativeName': 'தமிழ்'}, |
| 93 | 'te': {'name': 'Telugu', 'nativeName': 'తెలుగు'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 94 | 'tg': {'name': 'Tajik', 'nativeName': 'тоҷикӣ'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 95 | 'th': {'name': 'Thai', 'nativeName': 'ไทย'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 96 | 'tk': {'name': 'Turkmen', 'nativeName': 'Türkmen'}, |
| 97 | 'tl': {'name': 'Filipino', 'nativeName': 'Wikang Tagalog'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 98 | 'tr': {'name': 'Turkish', 'nativeName': 'Türkçe'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 99 | 'tt': {'name': 'Tatar', 'nativeName': 'татарча'}, |
| 100 | 'ug': {'name': 'Uyghur', 'nativeName': 'Uyƣurqə'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 101 | 'uk': {'name': 'Ukrainian', 'nativeName': 'українська'}, |
| 102 | 'ur': {'name': 'Urdu', 'nativeName': 'اردو'}, |
| 103 | 'uz': {'name': 'Uzbek', 'nativeName': 'zbek'}, |
| 104 | 'vi': {'name': 'Vietnamese', 'nativeName': 'Tiếng Việt'}, |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 105 | 'xh': {'name': 'Xhosa', 'nativeName': 'isiXhosa'}, |
| 106 | 'yi': {'name': 'Yiddish', 'nativeName': 'ייִדיש'}, |
| 107 | 'yo': {'name': 'Yoruba', 'nativeName': 'Yorùbá'}, |
avm99963 | 0f96116 | 2020-12-27 13:12:27 +0100 | [diff] [blame] | 108 | 'zh-CN': {'name': 'Chinese (Simplified)', 'nativeName': '汉语'}, |
| 109 | 'zh-TW': {'name': 'Chinese (Traditional)', 'nativeName': '漢語'}, |
avm99963 | f65e9bf | 2020-12-29 12:57:16 +0100 | [diff] [blame] | 110 | '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. |
| 115 | var convertLanguages = { |
| 116 | 'jv': 'jw', |
| 117 | 'zh': 'zh-CN', |
avm99963 | ce257a9 | 2020-12-27 00:07:13 +0100 | [diff] [blame] | 118 | }; |