Skip to content

Commit

Permalink
feat: Tidy languages up. (#466)
Browse files Browse the repository at this point in the history
Closes #459.
Closes #460.
Closes #461.
Closes #462.
  • Loading branch information
vxern authored Nov 24, 2024
2 parents 8827af3 + a4cdc59 commit 01dfb84
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 23 deletions.
1 change: 0 additions & 1 deletion assets/localisations/languages/eng-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@
"languages.turkmen": "Turkmen",
"languages.tuvinian": "Tuvinian",
"languages.twi": "Twi",
"languages.uighur": "Uighur",
"languages.ukrainian": "Ukrainian",
"languages.urdu": "Urdu",
"languages.uyghur": "Uyghur",
Expand Down
5 changes: 1 addition & 4 deletions source/constants/dictionaries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const dictionariesByLanguage = Object.freeze({
"Creole/Haitian": ["wiktionary"],
"Creole/Mauritian": ["wiktionary"],
"Creole/SierraLeone": ["wiktionary"],
"Creole/Seychellois": ["wiktionary"],
"CzechoSlovak/Czech": ["wiktionary"],
"CzechoSlovak/Slovak": ["wiktionary"],
Dholuo: ["wiktionary"],
Expand Down Expand Up @@ -148,7 +149,6 @@ const dictionariesByLanguage = Object.freeze({
Punjabi: ["wiktionary"],
Quechua: ["wiktionary"],
Rajasthani: ["wiktionary"],
RhaetoRomance: ["wiktionary"],
"RwandaRundi/Kinyarwanda": ["wiktionary"],
"RwandaRundi/Kirundi": ["wiktionary"],
Samoan: ["wiktionary"],
Expand All @@ -160,7 +160,6 @@ const dictionariesByLanguage = Object.freeze({
"SerboCroatian/Croatian": ["wiktionary"],
"SerboCroatian/Montenegrin": ["wiktionary"],
"SerboCroatian/Serbian": ["wiktionary"],
Seselwa: ["wiktionary"],
Shona: ["wiktionary"],
Sindhi: ["wiktionary"],
Sinhala: ["wiktionary"],
Expand Down Expand Up @@ -260,7 +259,6 @@ const dictionariesByLanguage = Object.freeze({
"Sorbian/Lower": ["wiktionary"],
"Sorbian/Upper": ["wiktionary"],
Tuvinian: ["wiktionary"],
Uighur: ["wiktionary"],
Veps: ["wiktionary"],
Vlaams: ["wiktionary"],
Walloon: ["wiktionary"],
Expand All @@ -282,7 +280,6 @@ const dictionariesByLanguage = Object.freeze({
"English/Australian": ["wiktionary"],
"French/Canadian": ["wiktionary"],
"French/French": ["wiktionary"],
"Portuguese/Portuguese": ["wiktionary"],
"Spanish/Mexican": ["wiktionary"],
"Spanish/Spanish": ["wiktionary"],
"Spanish/American": ["wiktionary"],
Expand Down
12 changes: 6 additions & 6 deletions source/constants/languages/detection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const languages = Object.freeze({
"Creole/Haitian",
"Creole/Mauritian",
"Creole/SierraLeone",
"Creole/Seychellois",
"CzechoSlovak/Czech",
"CzechoSlovak/Slovak",
"Danish",
Expand Down Expand Up @@ -118,8 +119,8 @@ const languages = Object.freeze({
"Punjabi",
"Quechua",
"Rajasthani",
"RhaetoRomance",
"Romanian",
"Romansh",
"Russian",
"RwandaRundi/Kinyarwanda",
"RwandaRundi/Kirundi",
Expand All @@ -132,7 +133,6 @@ const languages = Object.freeze({
"SerboCroatian/Croatian",
"SerboCroatian/Montenegrin",
"SerboCroatian/Serbian",
"Seselwa",
"Shona",
"Sindhi",
"Sinhala",
Expand Down Expand Up @@ -400,9 +400,9 @@ const languages = Object.freeze({
"Turkish",
"Turkmen",
"Tuvinian",
"Uighur",
"Ukrainian",
"Urdu",
"Uyghur",
"Uzbek",
"Veps",
"Vietnamese",
Expand Down Expand Up @@ -511,6 +511,7 @@ const languageToLocale = Object.freeze({
"Creole/Haitian": "ht",
"Creole/Mauritian": "mfe",
"Creole/SierraLeone": "kri",
"Creole/Seychellois": "crs",
"CzechoSlovak/Czech": "cs",
"CzechoSlovak/Slovak": "sk",
Danish: "da",
Expand Down Expand Up @@ -600,8 +601,8 @@ const languageToLocale = Object.freeze({
Punjabi: "pa",
Quechua: "qu",
Rajasthani: "raj",
RhaetoRomance: "rm",
Romanian: "ro",
Romansh: "rm",
Russian: "ru",
"RwandaRundi/Kinyarwanda": "rw",
"RwandaRundi/Kirundi": "rn",
Expand All @@ -614,7 +615,6 @@ const languageToLocale = Object.freeze({
"SerboCroatian/Croatian": "hr",
"SerboCroatian/Montenegrin": "sr-ME",
"SerboCroatian/Serbian": "sr",
Seselwa: "crs",
Shona: "sn",
Sindhi: "sd",
Sinhala: "si",
Expand Down Expand Up @@ -882,7 +882,7 @@ const languageToLocale = Object.freeze({
Turkish: "tur",
Turkmen: "tuk",
Tuvinian: "tyv",
Uighur: "uig",
Uyghur: "uig",
Ukrainian: "ukr",
Urdu: "urd",
Uzbek: "uzb",
Expand Down
9 changes: 3 additions & 6 deletions source/constants/languages/learning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const languageToLocale = Object.freeze({
"Creole/Haitian": "hat",
"Creole/Mauritian": "mfe",
"Creole/SierraLeone": "kri",
"Creole/Seychellois": "crs",
"CzechoSlovak/Czech": "ces",
"CzechoSlovak/Slovak": "slk",
Danish: "dan",
Expand Down Expand Up @@ -149,8 +150,8 @@ const languageToLocale = Object.freeze({
Punjabi: "pan",
Quechua: "que",
Rajasthani: "raj",
RhaetoRomance: "roh",
Romanian: "ron",
Romansh: "roh",
Russian: "rus",
"RwandaRundi/Kinyarwanda": "kin",
"RwandaRundi/Kirundi": "run",
Expand All @@ -163,7 +164,6 @@ const languageToLocale = Object.freeze({
"SerboCroatian/Croatian": "hrv",
"SerboCroatian/Montenegrin": "cnr",
"SerboCroatian/Serbian": "srp",
Seselwa: "crs",
Shona: "sna",
Sindhi: "snd",
Sinhala: "sin",
Expand Down Expand Up @@ -258,15 +258,13 @@ const languageToLocale = Object.freeze({
Piedmontese: "pms",
Portuguese: "por",
"Punjabi/Western": "pan",
Romansh: "roh",
Rusyn: "rue",
Sardinian: "srd",
SerboCroatian: "hbs",
Sicilian: "scn",
"Sorbian/Lower": "dsb",
"Sorbian/Upper": "hsb",
Tuvinian: "tyv",
Uighur: "uig",
Veps: "vep",
Vlaams: "vls",
Walloon: "wln",
Expand All @@ -292,7 +290,6 @@ const languageToLocale = Object.freeze({
"English/Australian": "eng-GB",
"French/Canadian": "fra",
"French/French": "fra",
"Portuguese/Portuguese": "por",
"Spanish/Mexican": "spa",
"Spanish/Spanish": "spa",
"Spanish/American": "spa",
Expand Down Expand Up @@ -324,6 +321,7 @@ const wiktionaryLanguageNames = Object.freeze({
"Creole/Haitian": "Haitian Creole",
"Creole/Mauritian": "Mauritian Creole",
"Creole/SierraLeone": "Krio",
"Creole/Seychellois": "Seychellois Creole",
"CzechoSlovak/Czech": "Czech",
"CzechoSlovak/Slovak": "Slovak",
"Filipino/Cebuano": "Cebuano",
Expand Down Expand Up @@ -370,7 +368,6 @@ const wiktionaryLanguageNames = Object.freeze({
"English/Australian": "English",
"French/Canadian": "French",
"French/French": "French",
"Portuguese/Portuguese": "Portuguese",
"Spanish/Mexican": "Spanish",
"Spanish/Spanish": "Spanish",
"Spanish/American": "Spanish",
Expand Down
4 changes: 2 additions & 2 deletions source/constants/languages/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ const languages = Object.freeze({
"Persian",
"Polish",
"Portuguese/Brazilian",
"Portuguese/Portuguese",
"Portuguese/European",
"Punjabi",
"Romanian",
"Russian",
Expand Down Expand Up @@ -551,7 +551,7 @@ const languageToLocale = Object.freeze({
Persian: "fa_IR",
Polish: "pl_PL",
"Portuguese/Brazilian": "pt_BR",
"Portuguese/Portuguese": "pt_PT",
"Portuguese/European": "pt_PT",
Punjabi: "pa_PK",
Romanian: "ro_RO",
Russian: "ru_RU",
Expand Down
5 changes: 1 addition & 4 deletions source/constants/localisations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ const localisations = Object.freeze({
"Creole/Haitian": "languages.creole.haitian",
"Creole/Mauritian": "languages.creole.mauritian",
"Creole/SierraLeone": "languages.creole.sierraLeone",
"Creole/Seychellois": "languages.creole.seychellois",
"CzechoSlovak/Czech": "languages.czechoSlovak.czech",
"CzechoSlovak/Slovak": "languages.czechoSlovak.slovak",
Danish: "languages.danish",
Expand Down Expand Up @@ -215,12 +216,10 @@ const localisations = Object.freeze({
Portuguese: "languages.portuguese",
"Portuguese/Brazilian": "languages.portuguese.brazilian",
"Portuguese/European": "languages.portuguese.european",
"Portuguese/Portuguese": "languages.portuguese.portuguese",
Punjabi: "languages.punjabi",
"Punjabi/Western": "languages.punjabi.western",
Quechua: "languages.quechua",
Rajasthani: "languages.rajasthani",
RhaetoRomance: "languages.rhaetoRomance",
Romanian: "languages.romanian",
Romansh: "languages.romansh",
Russian: "languages.russian",
Expand All @@ -238,7 +237,6 @@ const localisations = Object.freeze({
"SerboCroatian/Croatian": "languages.serboCroatian.croatian",
"SerboCroatian/Montenegrin": "languages.serboCroatian.montenegrin",
"SerboCroatian/Serbian": "languages.serboCroatian.serbian",
Seselwa: "languages.seselwa",
Shona: "languages.shona",
Sicilian: "languages.sicilian",
Silesian: "languages.silesian",
Expand Down Expand Up @@ -274,7 +272,6 @@ const localisations = Object.freeze({
Turkmen: "languages.turkmen",
Tuvinian: "languages.tuvinian",
Twi: "languages.twi",
Uighur: "languages.uighur",
Ukrainian: "languages.ukrainian",
Urdu: "languages.urdu",
Uyghur: "languages.uyghur",
Expand Down

0 comments on commit 01dfb84

Please sign in to comment.