From 3aa8ad3f8dff4f417347cf1d8cd2aeda99330302 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Thu, 7 Mar 2024 10:41:17 +0800 Subject: [PATCH] add: more language code resolve: #727 --- src/utils/config.ts | 1434 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 1196 insertions(+), 238 deletions(-) diff --git a/src/utils/config.ts b/src/utils/config.ts index 5fecd6e6..d0b5f159 100644 --- a/src/utils/config.ts +++ b/src/utils/config.ts @@ -379,248 +379,1206 @@ export function matchLanguage(str: string) { } export const LANG_CODE = [ - { code: "af", name: "Afrikaans" }, - { code: "af-ZA", name: "Afrikaans (South Africa)" }, - { code: "ar", name: "Arabic" }, - { code: "ar-AE", name: "Arabic (U.A.E.)" }, - { code: "ar-BH", name: "Arabic (Bahrain)" }, - { code: "ar-DZ", name: "Arabic (Algeria)" }, - { code: "ar-EG", name: "Arabic (Egypt)" }, - { code: "ar-IQ", name: "Arabic (Iraq)" }, - { code: "ar-JO", name: "Arabic (Jordan)" }, - { code: "ar-KW", name: "Arabic (Kuwait)" }, - { code: "ar-LB", name: "Arabic (Lebanon)" }, - { code: "ar-LY", name: "Arabic (Libya)" }, - { code: "ar-MA", name: "Arabic (Morocco)" }, - { code: "ar-OM", name: "Arabic (Oman)" }, - { code: "ar-QA", name: "Arabic (Qatar)" }, - { code: "ar-SA", name: "Arabic (Saudi Arabia)" }, - { code: "ar-SY", name: "Arabic (Syria)" }, - { code: "ar-TN", name: "Arabic (Tunisia)" }, - { code: "ar-YE", name: "Arabic (Yemen)" }, - { code: "az", name: "Azeri (Latin)" }, - { code: "az-AZ", name: "Azeri (Latin) (Azerbaijan)" }, - { code: "az-AZ", name: "Azeri (Cyrillic) (Azerbaijan)" }, - { code: "be", name: "Belarusian" }, - { code: "be-BY", name: "Belarusian (Belarus)" }, - { code: "bg", name: "Bulgarian" }, - { code: "bg-BG", name: "Bulgarian (Bulgaria)" }, - { code: "bs-BA", name: "Bosnian (Bosnia and Herzegovina)" }, - { code: "ca", name: "Catalan" }, - { code: "ca-ES", name: "Catalan (Spain)" }, - { code: "cs", name: "Czech" }, - { code: "cs-CZ", name: "Czech (Czech Republic)" }, - { code: "cy", name: "Welsh" }, - { code: "cy-GB", name: "Welsh (United Kingdom)" }, - { code: "da", name: "Danish" }, - { code: "da-DK", name: "Danish (Denmark)" }, - { code: "de", name: "German" }, - { code: "de-AT", name: "German (Austria)" }, - { code: "de-CH", name: "German (Switzerland)" }, - { code: "de-DE", name: "German (Germany)" }, - { code: "de-LI", name: "German (Liechtenstein)" }, - { code: "de-LU", name: "German (Luxembourg)" }, - { code: "dv", name: "Divehi" }, - { code: "dv-MV", name: "Divehi (Maldives)" }, - { code: "el", name: "Greek" }, - { code: "el-GR", name: "Greek (Greece)" }, - { code: "en", name: "English" }, - { code: "en-AU", name: "English (Australia)" }, - { code: "en-BZ", name: "English (Belize)" }, - { code: "en-CA", name: "English (Canada)" }, - { code: "en-CB", name: "English (Caribbean)" }, - { code: "en-GB", name: "English (United Kingdom)" }, - { code: "en-IE", name: "English (Ireland)" }, - { code: "en-JM", name: "English (Jamaica)" }, - { code: "en-NZ", name: "English (New Zealand)" }, - { code: "en-PH", name: "English (Republic of the Philippines)" }, - { code: "en-TT", name: "English (Trinidad and Tobago)" }, - { code: "en-US", name: "English (United States)" }, - { code: "en-ZA", name: "English (South Africa)" }, - { code: "en-ZW", name: "English (Zimbabwe)" }, - { code: "eo", name: "Esperanto" }, - { code: "es", name: "Spanish" }, - { code: "es-AR", name: "Spanish (Argentina)" }, - { code: "es-BO", name: "Spanish (Bolivia)" }, - { code: "es-CL", name: "Spanish (Chile)" }, - { code: "es-CO", name: "Spanish (Colombia)" }, - { code: "es-CR", name: "Spanish (Costa Rica)" }, - { code: "es-DO", name: "Spanish (Dominican Republic)" }, - { code: "es-EC", name: "Spanish (Ecuador)" }, - { code: "es-ES", name: "Spanish (Castilian)" }, - { code: "es-ES", name: "Spanish (Spain)" }, - { code: "es-GT", name: "Spanish (Guatemala)" }, - { code: "es-HN", name: "Spanish (Honduras)" }, - { code: "es-MX", name: "Spanish (Mexico)" }, - { code: "es-NI", name: "Spanish (Nicaragua)" }, - { code: "es-PA", name: "Spanish (Panama)" }, - { code: "es-PE", name: "Spanish (Peru)" }, - { code: "es-PR", name: "Spanish (Puerto Rico)" }, - { code: "es-PY", name: "Spanish (Paraguay)" }, - { code: "es-SV", name: "Spanish (El Salvador)" }, - { code: "es-UY", name: "Spanish (Uruguay)" }, - { code: "es-VE", name: "Spanish (Venezuela)" }, - { code: "et", name: "Estonian" }, - { code: "et-EE", name: "Estonian (Estonia)" }, - { code: "eu", name: "Basque" }, - { code: "eu-ES", name: "Basque (Spain)" }, - { code: "fa", name: "Farsi" }, - { code: "fa-IR", name: "Farsi (Iran)" }, - { code: "fi", name: "Finnish" }, - { code: "fi-FI", name: "Finnish (Finland)" }, - { code: "fo", name: "Faroese" }, - { code: "fo-FO", name: "Faroese (Faroe Islands)" }, - { code: "fr", name: "French" }, - { code: "fr-BE", name: "French (Belgium)" }, - { code: "fr-CA", name: "French (Canada)" }, - { code: "fr-CH", name: "French (Switzerland)" }, - { code: "fr-FR", name: "French (France)" }, - { code: "fr-LU", name: "French (Luxembourg)" }, - { code: "fr-MC", name: "French (Principality of Monaco)" }, - { code: "gl", name: "Galician" }, - { code: "gl-ES", name: "Galician (Spain)" }, - { code: "gu", name: "Gujarati" }, - { code: "gu-IN", name: "Gujarati (India)" }, - { code: "he", name: "Hebrew" }, - { code: "he-IL", name: "Hebrew (Israel)" }, - { code: "hi", name: "Hindi" }, - { code: "hi-IN", name: "Hindi (India)" }, - { code: "hr", name: "Croatian" }, - { code: "hr-BA", name: "Croatian (Bosnia and Herzegovina)" }, - { code: "hr-HR", name: "Croatian (Croatia)" }, - { code: "hu", name: "Hungarian" }, - { code: "hu-HU", name: "Hungarian (Hungary)" }, - { code: "hy", name: "Armenian" }, - { code: "hy-AM", name: "Armenian (Armenia)" }, - { code: "id", name: "Indonesian" }, - { code: "id-ID", name: "Indonesian (Indonesia)" }, - { code: "is", name: "Icelandic" }, - { code: "is-IS", name: "Icelandic (Iceland)" }, - { code: "it", name: "Italian" }, - { code: "it-CH", name: "Italian (Switzerland)" }, - { code: "it-IT", name: "Italian (Italy)" }, - { code: "ja", name: "Japanese" }, - { code: "ja-JP", name: "Japanese (Japan)" }, - { code: "ka", name: "Georgian" }, - { code: "ka-GE", name: "Georgian (Georgia)" }, - { code: "kk", name: "Kazakh" }, - { code: "kk-KZ", name: "Kazakh (Kazakhstan)" }, - { code: "kn", name: "Kannada" }, - { code: "kn-IN", name: "Kannada (India)" }, - { code: "ko", name: "Korean" }, - { code: "ko-KR", name: "Korean (Korea)" }, - { code: "kok", name: "Konkani" }, - { code: "kok-IN", name: "Konkani (India)" }, - { code: "ky", name: "Kyrgyz" }, - { code: "ky-KG", name: "Kyrgyz (Kyrgyzstan)" }, - { code: "lt", name: "Lithuanian" }, - { code: "lt-LT", name: "Lithuanian (Lithuania)" }, - { code: "lv", name: "Latvian" }, - { code: "lv-LV", name: "Latvian (Latvia)" }, - { code: "mi", name: "Maori" }, - { code: "mi-NZ", name: "Maori (New Zealand)" }, - { code: "mk", name: "FYRO Macedonian" }, + { + code: "af", + name: "Afrikaans", + }, + { + code: "af-ZA", + name: "Afrikaans (South Africa)", + }, + { + code: "ar", + name: "Arabic", + }, + { + code: "ar-AE", + name: "Arabic (U.A.E.)", + }, + { + code: "ar-BH", + name: "Arabic (Bahrain)", + }, + { + code: "ar-DZ", + name: "Arabic (Algeria)", + }, + { + code: "ar-EG", + name: "Arabic (Egypt)", + }, + { + code: "ar-IQ", + name: "Arabic (Iraq)", + }, + { + code: "ar-JO", + name: "Arabic (Jordan)", + }, + { + code: "ar-KW", + name: "Arabic (Kuwait)", + }, + { + code: "ar-LB", + name: "Arabic (Lebanon)", + }, + { + code: "ar-LY", + name: "Arabic (Libya)", + }, + { + code: "ar-MA", + name: "Arabic (Morocco)", + }, + { + code: "ar-OM", + name: "Arabic (Oman)", + }, + { + code: "ar-QA", + name: "Arabic (Qatar)", + }, + { + code: "ar-SA", + name: "Arabic (Saudi Arabia)", + }, + { + code: "ar-SY", + name: "Arabic (Syria)", + }, + { + code: "ar-TN", + name: "Arabic (Tunisia)", + }, + { + code: "ar-YE", + name: "Arabic (Yemen)", + }, + { + code: "az", + name: "Azeri (Latin)", + }, + { + code: "az-AZ", + name: "Azeri (Latin) (Azerbaijan)", + }, + { + code: "az-AZ", + name: "Azeri (Cyrillic) (Azerbaijan)", + }, + { + code: "be", + name: "Belarusian", + }, + { + code: "be-BY", + name: "Belarusian (Belarus)", + }, + { + code: "bg", + name: "Bulgarian", + }, + { + code: "bg-BG", + name: "Bulgarian (Bulgaria)", + }, + { + code: "bs-BA", + name: "Bosnian (Bosnia and Herzegovina)", + }, + { + code: "ca", + name: "Catalan", + }, + { + code: "ca-ES", + name: "Catalan (Spain)", + }, + { + code: "cs", + name: "Czech", + }, + { + code: "cs-CZ", + name: "Czech (Czech Republic)", + }, + { + code: "cy", + name: "Welsh", + }, + { + code: "cy-GB", + name: "Welsh (United Kingdom)", + }, + { + code: "da", + name: "Danish", + }, + { + code: "da-DK", + name: "Danish (Denmark)", + }, + { + code: "de", + name: "German", + }, + { + code: "de-AT", + name: "German (Austria)", + }, + { + code: "de-CH", + name: "German (Switzerland)", + }, + { + code: "de-DE", + name: "German (Germany)", + }, + { + code: "de-LI", + name: "German (Liechtenstein)", + }, + { + code: "de-LU", + name: "German (Luxembourg)", + }, + { + code: "dv", + name: "Divehi", + }, + { + code: "dv-MV", + name: "Divehi (Maldives)", + }, + { + code: "el", + name: "Greek", + }, + { + code: "el-GR", + name: "Greek (Greece)", + }, + { + code: "en", + name: "English", + }, + { + code: "en-AU", + name: "English (Australia)", + }, + { + code: "en-BZ", + name: "English (Belize)", + }, + { + code: "en-CA", + name: "English (Canada)", + }, + { + code: "en-CB", + name: "English (Caribbean)", + }, + { + code: "en-GB", + name: "English (United Kingdom)", + }, + { + code: "en-IE", + name: "English (Ireland)", + }, + { + code: "en-JM", + name: "English (Jamaica)", + }, + { + code: "en-NZ", + name: "English (New Zealand)", + }, + { + code: "en-PH", + name: "English (Republic of the Philippines)", + }, + { + code: "en-TT", + name: "English (Trinidad and Tobago)", + }, + { + code: "en-US", + name: "English (United States)", + }, + { + code: "en-ZA", + name: "English (South Africa)", + }, + { + code: "en-ZW", + name: "English (Zimbabwe)", + }, + { + code: "eo", + name: "Esperanto", + }, + { + code: "es", + name: "Spanish", + }, + { + code: "es-AR", + name: "Spanish (Argentina)", + }, + { + code: "es-BO", + name: "Spanish (Bolivia)", + }, + { + code: "es-CL", + name: "Spanish (Chile)", + }, + { + code: "es-CO", + name: "Spanish (Colombia)", + }, + { + code: "es-CR", + name: "Spanish (Costa Rica)", + }, + { + code: "es-DO", + name: "Spanish (Dominican Republic)", + }, + { + code: "es-EC", + name: "Spanish (Ecuador)", + }, + { + code: "es-ES", + name: "Spanish (Castilian)", + }, + { + code: "es-ES", + name: "Spanish (Spain)", + }, + { + code: "es-GT", + name: "Spanish (Guatemala)", + }, + { + code: "es-HN", + name: "Spanish (Honduras)", + }, + { + code: "es-MX", + name: "Spanish (Mexico)", + }, + { + code: "es-NI", + name: "Spanish (Nicaragua)", + }, + { + code: "es-PA", + name: "Spanish (Panama)", + }, + { + code: "es-PE", + name: "Spanish (Peru)", + }, + { + code: "es-PR", + name: "Spanish (Puerto Rico)", + }, + { + code: "es-PY", + name: "Spanish (Paraguay)", + }, + { + code: "es-SV", + name: "Spanish (El Salvador)", + }, + { + code: "es-UY", + name: "Spanish (Uruguay)", + }, + { + code: "es-VE", + name: "Spanish (Venezuela)", + }, + { + code: "et", + name: "Estonian", + }, + { + code: "et-EE", + name: "Estonian (Estonia)", + }, + { + code: "eu", + name: "Basque", + }, + { + code: "eu-ES", + name: "Basque (Spain)", + }, + { + code: "fa", + name: "Farsi", + }, + { + code: "fa-IR", + name: "Farsi (Iran)", + }, + { + code: "fi", + name: "Finnish", + }, + { + code: "fi-FI", + name: "Finnish (Finland)", + }, + { + code: "fo", + name: "Faroese", + }, + { + code: "fo-FO", + name: "Faroese (Faroe Islands)", + }, + { + code: "fr", + name: "French", + }, + { + code: "fr-BE", + name: "French (Belgium)", + }, + { + code: "fr-CA", + name: "French (Canada)", + }, + { + code: "fr-CH", + name: "French (Switzerland)", + }, + { + code: "fr-FR", + name: "French (France)", + }, + { + code: "fr-LU", + name: "French (Luxembourg)", + }, + { + code: "fr-MC", + name: "French (Principality of Monaco)", + }, + { + code: "gl", + name: "Galician", + }, + { + code: "gl-ES", + name: "Galician (Spain)", + }, + { + code: "gu", + name: "Gujarati", + }, + { + code: "gu-IN", + name: "Gujarati (India)", + }, + { + code: "he", + name: "Hebrew", + }, + { + code: "he-IL", + name: "Hebrew (Israel)", + }, + { + code: "hi", + name: "Hindi", + }, + { + code: "hi-IN", + name: "Hindi (India)", + }, + { + code: "hr", + name: "Croatian", + }, + { + code: "hr-BA", + name: "Croatian (Bosnia and Herzegovina)", + }, + { + code: "hr-HR", + name: "Croatian (Croatia)", + }, + { + code: "hu", + name: "Hungarian", + }, + { + code: "hu-HU", + name: "Hungarian (Hungary)", + }, + { + code: "hy", + name: "Armenian", + }, + { + code: "hy-AM", + name: "Armenian (Armenia)", + }, + { + code: "id", + name: "Indonesian", + }, + { + code: "id-ID", + name: "Indonesian (Indonesia)", + }, + { + code: "is", + name: "Icelandic", + }, + { + code: "is-IS", + name: "Icelandic (Iceland)", + }, + { + code: "it", + name: "Italian", + }, + { + code: "it-CH", + name: "Italian (Switzerland)", + }, + { + code: "it-IT", + name: "Italian (Italy)", + }, + { + code: "ja", + name: "Japanese", + }, + { + code: "ja-JP", + name: "Japanese (Japan)", + }, + { + code: "ka", + name: "Georgian", + }, + { + code: "ka-GE", + name: "Georgian (Georgia)", + }, + { + code: "kk", + name: "Kazakh", + }, + { + code: "kk-KZ", + name: "Kazakh (Kazakhstan)", + }, + { + code: "kn", + name: "Kannada", + }, + { + code: "kn-IN", + name: "Kannada (India)", + }, + { + code: "ko", + name: "Korean", + }, + { + code: "ko-KR", + name: "Korean (Korea)", + }, + { + code: "kok", + name: "Konkani", + }, + { + code: "kok-IN", + name: "Konkani (India)", + }, + { + code: "ky", + name: "Kyrgyz", + }, + { + code: "ky-KG", + name: "Kyrgyz (Kyrgyzstan)", + }, + { + code: "lt", + name: "Lithuanian", + }, + { + code: "lt-LT", + name: "Lithuanian (Lithuania)", + }, + { + code: "lv", + name: "Latvian", + }, + { + code: "lv-LV", + name: "Latvian (Latvia)", + }, + { + code: "mi", + name: "Maori", + }, + { + code: "mi-NZ", + name: "Maori (New Zealand)", + }, + { + code: "mk", + name: "FYRO Macedonian", + }, { code: "mk-MK", name: "FYRO Macedonian (Former Yugoslav Republic of Macedonia)", }, - { code: "mn", name: "Mongolian" }, - { code: "mn-MN", name: "Mongolian (Mongolia)" }, - { code: "mr", name: "Marathi" }, - { code: "mr-IN", name: "Marathi (India)" }, - { code: "ms", name: "Malay" }, - { code: "ms-BN", name: "Malay (Brunei Darussalam)" }, - { code: "ms-MY", name: "Malay (Malaysia)" }, - { code: "mt", name: "Maltese" }, - { code: "mt-MT", name: "Maltese (Malta)" }, - { code: "nb", name: "Norwegian (Bokm?l)" }, - { code: "nb-NO", name: "Norwegian (Bokm?l) (Norway)" }, - { code: "nl", name: "Dutch" }, - { code: "nl-BE", name: "Dutch (Belgium)" }, - { code: "nl-NL", name: "Dutch (Netherlands)" }, - { code: "nn-NO", name: "Norwegian (Nynorsk) (Norway)" }, - { code: "ns", name: "Northern Sotho" }, - { code: "ns-ZA", name: "Northern Sotho (South Africa)" }, - { code: "pa", name: "Punjabi" }, - { code: "pa-IN", name: "Punjabi (India)" }, - { code: "pl", name: "Polish" }, - { code: "pl-PL", name: "Polish (Poland)" }, - { code: "ps", name: "Pashto" }, - { code: "ps-AR", name: "Pashto (Afghanistan)" }, - { code: "pt", name: "Portuguese" }, - { code: "pt-BR", name: "Portuguese (Brazil)" }, - { code: "pt-PT", name: "Portuguese (Portugal)" }, - { code: "qu", name: "Quechua" }, - { code: "qu-BO", name: "Quechua (Bolivia)" }, - { code: "qu-EC", name: "Quechua (Ecuador)" }, - { code: "qu-PE", name: "Quechua (Peru)" }, - { code: "ro", name: "Romanian" }, - { code: "ro-RO", name: "Romanian (Romania)" }, - { code: "ru", name: "Russian" }, - { code: "ru-RU", name: "Russian (Russia)" }, - { code: "sa", name: "Sanskrit" }, - { code: "sa-IN", name: "Sanskrit (India)" }, - { code: "se", name: "Sami (Northern)" }, - { code: "se-FI", name: "Sami (Northern) (Finland)" }, - { code: "se-FI", name: "Sami (Skolt) (Finland)" }, - { code: "se-FI", name: "Sami (Inari) (Finland)" }, - { code: "se-NO", name: "Sami (Northern) (Norway)" }, - { code: "se-NO", name: "Sami (Lule) (Norway)" }, - { code: "se-NO", name: "Sami (Southern) (Norway)" }, - { code: "se-SE", name: "Sami (Northern) (Sweden)" }, - { code: "se-SE", name: "Sami (Lule) (Sweden)" }, - { code: "se-SE", name: "Sami (Southern) (Sweden)" }, - { code: "sk", name: "Slovak" }, - { code: "sk-SK", name: "Slovak (Slovakia)" }, - { code: "sl", name: "Slovenian" }, - { code: "sl-SI", name: "Slovenian (Slovenia)" }, - { code: "sq", name: "Albanian" }, - { code: "sq-AL", name: "Albanian (Albania)" }, - { code: "sr-BA", name: "Serbian (Latin) (Bosnia and Herzegovina)" }, - { code: "sr-BA", name: "Serbian (Cyrillic) (Bosnia and Herzegovina)" }, - { code: "sr-SP", name: "Serbian (Latin) (Serbia and Montenegro)" }, - { code: "sr-SP", name: "Serbian (Cyrillic) (Serbia and Montenegro)" }, - { code: "sv", name: "Swedish" }, - { code: "sv-FI", name: "Swedish (Finland)" }, - { code: "sv-SE", name: "Swedish (Sweden)" }, - { code: "sw", name: "Swahili" }, - { code: "sw-KE", name: "Swahili (Kenya)" }, - { code: "syr", name: "Syriac" }, - { code: "syr-SY", name: "Syriac (Syria)" }, - { code: "ta", name: "Tamil" }, - { code: "ta-IN", name: "Tamil (India)" }, - { code: "te", name: "Telugu" }, - { code: "te-IN", name: "Telugu (India)" }, - { code: "th", name: "Thai" }, - { code: "th-TH", name: "Thai (Thailand)" }, - { code: "tl", name: "Tagalog" }, - { code: "tl-PH", name: "Tagalog (Philippines)" }, - { code: "tn", name: "Tswana" }, - { code: "tn-ZA", name: "Tswana (South Africa)" }, - { code: "tr", name: "Turkish" }, - { code: "tr-TR", name: "Turkish (Turkey)" }, - { code: "tt", name: "Tatar" }, - { code: "tt-RU", name: "Tatar (Russia)" }, - { code: "ts", name: "Tsonga" }, - { code: "uk", name: "Ukrainian" }, - { code: "uk-UA", name: "Ukrainian (Ukraine)" }, - { code: "ur", name: "Urdu" }, - { code: "ur-PK", name: "Urdu (Islamic Republic of Pakistan)" }, - { code: "uz", name: "Uzbek (Latin)" }, - { code: "uz-UZ", name: "Uzbek (Latin) (Uzbekistan)" }, - { code: "uz-UZ", name: "Uzbek (Cyrillic) (Uzbekistan)" }, - { code: "vi", name: "Vietnamese" }, - { code: "vi-VN", name: "Vietnamese (Viet Nam)" }, - { code: "xh", name: "Xhosa" }, - { code: "xh-ZA", name: "Xhosa (South Africa)" }, - { code: "zh", name: "Chinese" }, - { code: "zh-CN", name: "Chinese (S)" }, - { code: "zh-HK", name: "Chinese (Hong Kong)" }, - { code: "zh-MO", name: "Chinese (Macau)" }, - { code: "zh-SG", name: "Chinese (Singapore)" }, - { code: "zh-TW", name: "Chinese (T)" }, - { code: "zu", name: "Zulu" }, - { code: "zu-ZA", name: "Zulu (South Africa)" }, + { + code: "mn", + name: "Mongolian", + }, + { + code: "mn-MN", + name: "Mongolian (Mongolia)", + }, + { + code: "mr", + name: "Marathi", + }, + { + code: "mr-IN", + name: "Marathi (India)", + }, + { + code: "ms", + name: "Malay", + }, + { + code: "ms-BN", + name: "Malay (Brunei Darussalam)", + }, + { + code: "ms-MY", + name: "Malay (Malaysia)", + }, + { + code: "mt", + name: "Maltese", + }, + { + code: "mt-MT", + name: "Maltese (Malta)", + }, + { + code: "nb", + name: "Norwegian (Bokm?l)", + }, + { + code: "nb-NO", + name: "Norwegian (Bokm?l) (Norway)", + }, + { + code: "nl", + name: "Dutch", + }, + { + code: "nl-BE", + name: "Dutch (Belgium)", + }, + { + code: "nl-NL", + name: "Dutch (Netherlands)", + }, + { + code: "nn-NO", + name: "Norwegian (Nynorsk) (Norway)", + }, + { + code: "ns", + name: "Northern Sotho", + }, + { + code: "ns-ZA", + name: "Northern Sotho (South Africa)", + }, + { + code: "pa", + name: "Punjabi", + }, + { + code: "pa-IN", + name: "Punjabi (India)", + }, + { + code: "pl", + name: "Polish", + }, + { + code: "pl-PL", + name: "Polish (Poland)", + }, + { + code: "ps", + name: "Pashto", + }, + { + code: "ps-AR", + name: "Pashto (Afghanistan)", + }, + { + code: "pt", + name: "Portuguese", + }, + { + code: "pt-BR", + name: "Portuguese (Brazil)", + }, + { + code: "pt-PT", + name: "Portuguese (Portugal)", + }, + { + code: "qu", + name: "Quechua", + }, + { + code: "qu-BO", + name: "Quechua (Bolivia)", + }, + { + code: "qu-EC", + name: "Quechua (Ecuador)", + }, + { + code: "qu-PE", + name: "Quechua (Peru)", + }, + { + code: "ro", + name: "Romanian", + }, + { + code: "ro-RO", + name: "Romanian (Romania)", + }, + { + code: "ru", + name: "Russian", + }, + { + code: "ru-RU", + name: "Russian (Russia)", + }, + { + code: "sa", + name: "Sanskrit", + }, + { + code: "sa-IN", + name: "Sanskrit (India)", + }, + { + code: "se", + name: "Sami (Northern)", + }, + { + code: "se-FI", + name: "Sami (Northern) (Finland)", + }, + { + code: "se-FI", + name: "Sami (Skolt) (Finland)", + }, + { + code: "se-FI", + name: "Sami (Inari) (Finland)", + }, + { + code: "se-NO", + name: "Sami (Northern) (Norway)", + }, + { + code: "se-NO", + name: "Sami (Lule) (Norway)", + }, + { + code: "se-NO", + name: "Sami (Southern) (Norway)", + }, + { + code: "se-SE", + name: "Sami (Northern) (Sweden)", + }, + { + code: "se-SE", + name: "Sami (Lule) (Sweden)", + }, + { + code: "se-SE", + name: "Sami (Southern) (Sweden)", + }, + { + code: "sk", + name: "Slovak", + }, + { + code: "sk-SK", + name: "Slovak (Slovakia)", + }, + { + code: "sl", + name: "Slovenian", + }, + { + code: "sl-SI", + name: "Slovenian (Slovenia)", + }, + { + code: "sq", + name: "Albanian", + }, + { + code: "sq-AL", + name: "Albanian (Albania)", + }, + { + code: "sr-BA", + name: "Serbian (Latin) (Bosnia and Herzegovina)", + }, + { + code: "sr-BA", + name: "Serbian (Cyrillic) (Bosnia and Herzegovina)", + }, + { + code: "sr-SP", + name: "Serbian (Latin) (Serbia and Montenegro)", + }, + { + code: "sr-SP", + name: "Serbian (Cyrillic) (Serbia and Montenegro)", + }, + { + code: "sv", + name: "Swedish", + }, + { + code: "sv-FI", + name: "Swedish (Finland)", + }, + { + code: "sv-SE", + name: "Swedish (Sweden)", + }, + { + code: "sw", + name: "Swahili", + }, + { + code: "sw-KE", + name: "Swahili (Kenya)", + }, + { + code: "syr", + name: "Syriac", + }, + { + code: "syr-SY", + name: "Syriac (Syria)", + }, + { + code: "ta", + name: "Tamil", + }, + { + code: "ta-IN", + name: "Tamil (India)", + }, + { + code: "te", + name: "Telugu", + }, + { + code: "te-IN", + name: "Telugu (India)", + }, + { + code: "th", + name: "Thai", + }, + { + code: "th-TH", + name: "Thai (Thailand)", + }, + { + code: "tl", + name: "Tagalog", + }, + { + code: "tl-PH", + name: "Tagalog (Philippines)", + }, + { + code: "tn", + name: "Tswana", + }, + { + code: "tn-ZA", + name: "Tswana (South Africa)", + }, + { + code: "tr", + name: "Turkish", + }, + { + code: "tr-TR", + name: "Turkish (Turkey)", + }, + { + code: "tt", + name: "Tatar", + }, + { + code: "tt-RU", + name: "Tatar (Russia)", + }, + { + code: "ts", + name: "Tsonga", + }, + { + code: "uk", + name: "Ukrainian", + }, + { + code: "uk-UA", + name: "Ukrainian (Ukraine)", + }, + { + code: "ur", + name: "Urdu", + }, + { + code: "ur-PK", + name: "Urdu (Islamic Republic of Pakistan)", + }, + { + code: "uz", + name: "Uzbek (Latin)", + }, + { + code: "uz-UZ", + name: "Uzbek (Latin) (Uzbekistan)", + }, + { + code: "uz-UZ", + name: "Uzbek (Cyrillic) (Uzbekistan)", + }, + { + code: "vi", + name: "Vietnamese", + }, + { + code: "vi-VN", + name: "Vietnamese (Viet Nam)", + }, + { + code: "xh", + name: "Xhosa", + }, + { + code: "xh-ZA", + name: "Xhosa (South Africa)", + }, + { + code: "zh", + name: "Chinese", + }, + { + code: "zh-CN", + name: "Chinese (S)", + }, + { + code: "zh-HK", + name: "Chinese (Hong Kong)", + }, + { + code: "zh-MO", + name: "Chinese (Macau)", + }, + { + code: "zh-SG", + name: "Chinese (Singapore)", + }, + { + code: "zh-TW", + name: "Chinese (T)", + }, + { + code: "zu", + name: "Zulu", + }, + { + code: "zu-ZA", + name: "Zulu (South Africa)", + }, + { + code: "am", + name: "Amharic", + }, + { + code: "as", + name: "Assamese", + }, + { + code: "ay", + name: "Aymara", + }, + { + code: "bm", + name: "Bambara", + }, + { + code: "bn", + name: "Bengali", + }, + { + code: "bho", + name: "Bhojpuri", + }, + { + code: "bs", + name: "Bosnian", + }, + { + code: "ceb", + name: "Cebuano", + }, + { + code: "ny", + name: "Chichewa", + }, + { + code: "co", + name: "Corsican", + }, + { + code: "doi", + name: "Dogri", + }, + { + code: "ee", + name: "Ewe", + }, + { + code: "fy", + name: "Frisian", + }, + { + code: "gn", + name: "Guarani", + }, + { + code: "ht", + name: "Haitian Creole", + }, + { + code: "ha", + name: "Hausa", + }, + { + code: "haw", + name: "Hawaiian", + }, + { + code: "iw", + name: "Hebrew", + }, + { + code: "hmn", + name: "Hmong", + }, + { + code: "ig", + name: "Igbo", + }, + { + code: "ilo", + name: "Ilocano", + }, + { + code: "ga", + name: "Irish", + }, + { + code: "jw", + name: "Javanese", + }, + { + code: "km", + name: "Khmer", + }, + { + code: "rw", + name: "Kinyarwanda", + }, + { + code: "gom", + name: "Konkani", + }, + { + code: "kri", + name: "Krio", + }, + { + code: "ku", + name: "Kurdish (Kurmanji)", + }, + { + code: "ckb", + name: "Kurdish (Sorani)", + }, + { + code: "lo", + name: "Lao", + }, + { + code: "la", + name: "Latin", + }, + { + code: "ln", + name: "Lingala", + }, + { + code: "lg", + name: "Luganda", + }, + { + code: "lb", + name: "Luxembourgish", + }, + { + code: "mai", + name: "Maithili", + }, + { + code: "mg", + name: "Malagasy", + }, + { + code: "ml", + name: "Malayalam", + }, + { + code: "mni-Mtei", + name: "Meiteilon (Manipuri)", + }, + { + code: "lus", + name: "Mizo", + }, + { + code: "my", + name: "Myanmar (Burmese)", + }, + { + code: "ne", + name: "Nepali", + }, + { + code: "no", + name: "Norwegian", + }, + { + code: "or", + name: "Odia (Oriya)", + }, + { + code: "om", + name: "Oromo", + }, + { + code: "sm", + name: "Samoan", + }, + { + code: "gd", + name: "Scots Gaelic", + }, + { + code: "nso", + name: "Sepedi", + }, + { + code: "sr", + name: "Serbian", + }, + { + code: "st", + name: "Sesotho", + }, + { + code: "sn", + name: "Shona", + }, + { + code: "sd", + name: "Sindhi", + }, + { + code: "si", + name: "Sinhala", + }, + { + code: "so", + name: "Somali", + }, + { + code: "su", + name: "Sundanese", + }, + { + code: "tg", + name: "Tajik", + }, + { + code: "ti", + name: "Tigrinya", + }, + { + code: "tk", + name: "Turkmen", + }, + { + code: "ak", + name: "Twi", + }, + { + code: "ug", + name: "Uyghur", + }, + { + code: "yi", + name: "Yiddish", + }, + { + code: "yo", + name: "Yoruba", + }, ]; const MACRO_LANG_MAP = Object.keys(ISO6393_MACRO_LANGS).reduce(