From 1ea8af9a8fb1676f899d54ad921e68ccf1722878 Mon Sep 17 00:00:00 2001 From: lcjohnso Date: Wed, 26 Jun 2024 11:44:03 -0500 Subject: [PATCH] Edit language list, remove dialect specificity --- app/constants/languages.js | 89 +++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 45 deletions(-) diff --git a/app/constants/languages.js b/app/constants/languages.js index 5f6913e33b..d76f7571c1 100644 --- a/app/constants/languages.js +++ b/app/constants/languages.js @@ -1,21 +1,20 @@ const languages = [ { value: 'af', label: 'Afrikaans' }, { value: 'sq', label: 'Albanian' }, - { value: 'gsw-fr', label: 'Alsatian (France)' }, - { value: 'am-et', label: 'Amharic (Ethiopia)' }, + { value: 'gsw', label: 'Alsatian' }, + { value: 'am', label: 'Amharic' }, { value: 'ar', label: 'Arabic' }, { value: 'hy', label: 'Armenian' }, - { value: 'as-in', label: 'Assamese (India)' }, + { value: 'as', label: 'Assamese' }, { value: 'az', label: 'Azeri' }, - { value: 'ba-ru', label: 'Bashkir (Russia)' }, + { value: 'ba', label: 'Bashkir' }, { value: 'eu', label: 'Basque' }, { value: 'be', label: 'Belarusian' }, { value: 'bn', label: 'Bengali' }, - { value: 'bn-bd', label: 'Bengali (Bangladesh)' }, - { value: 'bn-in', label: 'Bengali (India)' }, + { value: 'bs', label: 'Bosnian' }, { value: 'bs-cyrl-ba', label: 'Bosnian (Cyrillic, Bosnia and Herzegovina)' }, { value: 'bs-latn-ba', label: 'Bosnian (Latin, Bosnia and Herzegovina)' }, - { value: 'br-fr', label: 'Breton (France)' }, + { value: 'br', label: 'Breton' }, { value: 'bg', label: 'Bulgarian' }, { value: 'ca', label: 'Catalan' }, { value: 'zh-cn', label: 'Chinese (Simplified)' }, @@ -23,7 +22,7 @@ const languages = [ { value: 'hr', label: 'Croatian' }, { value: 'cs', label: 'Czech' }, { value: 'da', label: 'Danish' }, - { value: 'prs-af', label: 'Dari (Afghanistan)' }, + { value: 'prs', label: 'Dari' }, { value: 'div', label: 'Divehi' }, { value: 'nl', label: 'Dutch' }, { value: 'en', label: 'English' }, @@ -31,72 +30,72 @@ const languages = [ { value: 'en-us', label: 'English (United States)' }, { value: 'et', label: 'Estonian' }, { value: 'fo', label: 'Faroese' }, - { value: 'fil-ph', label: 'Filipino (Philippines)' }, + { value: 'fil', label: 'Filipino' }, { value: 'fi', label: 'Finnish' }, { value: 'fr', label: 'French' }, { value: 'gl', label: 'Galician' }, { value: 'ka', label: 'Georgian' }, { value: 'de', label: 'German' }, { value: 'el', label: 'Greek' }, - { value: 'kl-gl', label: 'Greenlandic (Greenland)' }, + { value: 'kl', label: 'Greenlandic' }, { value: 'gu', label: 'Gujarati' }, - { value: 'ha-latn-ng', label: 'Hausa (Latin, Nigeria)' }, + { value: 'ha', label: 'Hausa' }, { value: 'he', label: 'Hebrew' }, { value: 'hi', label: 'Hindi' }, { value: 'hu', label: 'Hungarian' }, { value: 'is', label: 'Icelandic' }, - { value: 'ig-ng', label: 'Igbo (Nigeria)' }, + { value: 'ig', label: 'Igbo' }, { value: 'id', label: 'Indonesian' }, + { value: 'iu', label: 'Inuktitut' }, { value: 'iu-latn-ca', label: 'Inuktitut (Latin, Canada)' }, { value: 'iu-cans-ca', label: 'Inuktitut (Syllabics, Canada)' }, - { value: 'ga-ie', label: 'Irish (Ireland)' }, - { value: 'xh-za', label: 'isiXhosa (South Africa)' }, - { value: 'zu-za', label: 'isiZulu (South Africa)' }, + { value: 'ga', label: 'Irish' }, + { value: 'xh', label: 'isiXhosa' }, + { value: 'zu', label: 'isiZulu' }, { value: 'it', label: 'Italian' }, { value: 'ja', label: 'Japanese' }, { value: 'kn', label: 'Kannada' }, { value: 'kk', label: 'Kazakh' }, - { value: 'km-kh', label: 'Khmer (Cambodia)' }, - { value: 'qut-gt', label: 'K\'iche (Guatemala)' }, - { value: 'rw-rw', label: 'Kinyarwanda (Rwanda)' }, + { value: 'km', label: 'Khmer' }, + { value: 'qut', label: 'K\'iche' }, + { value: 'rw', label: 'Kinyarwanda' }, { value: 'sw', label: 'Kiswahili' }, { value: 'kok', label: 'Konkani' }, { value: 'ko', label: 'Korean' }, { value: 'ky', label: 'Kyrgyz' }, - { value: 'lo-la', label: 'Lao (Lao P.D.R.)' }, + { value: 'lo', label: 'Lao' }, { value: 'lv', label: 'Latvian' }, { value: 'lt', label: 'Lithuanian' }, - { value: 'wee-de', label: 'Lower Sorbian (Germany)' }, - { value: 'lb-lu', label: 'Luxembourgish (Luxembourg)' }, + { value: 'wee', label: 'Lower Sorbian' }, + { value: 'lb', label: 'Luxembourgish' }, { value: 'mk', label: 'Macedonian' }, { value: 'ms', label: 'Malay' }, - { value: 'ml-in', label: 'Malayalam (India)' }, - { value: 'mt-mt', label: 'Maltese (Malta)' }, - { value: 'mi-nz', label: 'Maori (New Zealand)' }, - { value: 'arn-cl', label: 'Mapudungun (Chile)' }, + { value: 'ml', label: 'Malayalam' }, + { value: 'mt', label: 'Maltese' }, + { value: 'mi', label: 'Maori' }, + { value: 'arn', label: 'Mapudungun' }, { value: 'mr', label: 'Marathi' }, - { value: 'moh-ca', label: 'Mohawk (Mohawk)' }, + { value: 'moh', label: 'Mohawk' }, { value: 'mn', label: 'Mongolian' }, - { value: 'ne-np', label: 'Nepali (Nepal)' }, + { value: 'ne', label: 'Nepali' }, { value: 'no', label: 'Norwegian' }, - { value: 'oc-fr', label: 'Occitan (France)' }, - { value: 'or-in', label: 'Oriya (India)' }, - { value: 'ps-af', label: 'Pashto (Afghanistan)' }, + { value: 'oc', label: 'Occitan' }, + { value: 'or', label: 'Oriya' }, + { value: 'ps', label: 'Pashto' }, { value: 'fa', label: 'Persian' }, { value: 'pl', label: 'Polish' }, { value: 'pt', label: 'Portuguese' }, { value: 'pa', label: 'Punjabi' }, - { value: 'quz-bo', label: 'Quechua (Bolivia)' }, - { value: 'quz-ec', label: 'Quechua (Ecuador)' }, - { value: 'quz-pe', label: 'Quechua (Peru)' }, + { value: 'qu', label: 'Quechua' }, { value: 'ro', label: 'Romanian' }, - { value: 'rm-ch', label: 'Romansh (Switzerland)' }, + { value: 'rm', label: 'Romansh' }, { value: 'ru', label: 'Russian' }, { value: 'sa', label: 'Sanskrit' }, { value: 'sr', label: 'Serbian' }, - { value: 'nso-za', label: 'Sesotho sa Leboa (South Africa)' }, - { value: 'tn-za', label: 'Setswana (South Africa)' }, - { value: 'si-lk', label: 'Sinhala (Sri Lanka)' }, + { value: 'st', label: 'Sesotho' }, + { value: 'nso', label: 'Sesotho sa Leboa' }, + { value: 'tn', label: 'Setswana' }, + { value: 'si', label: 'Sinhala' }, { value: 'sk', label: 'Slovak' }, { value: 'sl', label: 'Slovenian' }, { value: 'es', label: 'Spanish' }, @@ -108,22 +107,22 @@ const languages = [ { value: 'tt', label: 'Tatar' }, { value: 'te', label: 'Telugu' }, { value: 'th', label: 'Thai' }, - { value: 'bo-cn', label: 'Tibetan (PRC)' }, + { value: 'bo', label: 'Tibetan' }, { value: 've', label: 'Tshivenḓa' }, { value: 'tr', label: 'Turkish' }, - { value: 'tk-tm', label: 'Turkmen (Turkmenistan)' }, - { value: 'ug-cn', label: 'Uighur (PRC)' }, + { value: 'tk', label: 'Turkmen' }, + { value: 'ug', label: 'Uighur' }, { value: 'uk', label: 'Ukrainian' }, - { value: 'wen-de', label: 'Upper Sorbian (Germany)' }, + { value: 'wen', label: 'Upper Sorbian' }, { value: 'ur', label: 'Urdu' }, { value: 'uz', label: 'Uzbek' }, { value: 'vi', label: 'Vietlabelse' }, { value: 'cy', label: 'Welsh' }, - { value: 'wo-sn', label: 'Wolof (Senegal)' }, + { value: 'wo', label: 'Wolof' }, { value: 'ts', label: 'Xitsonga'}, - { value: 'sah-ru', label: 'Yakut (Russia)' }, - { value: 'ii-cn', label: 'Yi (PRC)' }, - { value: 'yo-ng', label: 'Yoruba (Nigeria)' } + { value: 'sah', label: 'Yakut' }, + { value: 'ii', label: 'Yi' }, + { value: 'yo', label: 'Yoruba' } ]; export default languages;