BEEEP: Add missing languages (#1501)

* Pull in jslib

* Import and register missing locales

* Update supportedTranslationLocales
This commit is contained in:
Daniel James Smith 2022-02-25 20:59:07 +01:00 committed by GitHub
parent 98fb71fcb6
commit d0c0e80b6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 3 deletions

2
jslib

@ -1 +1 @@
Subproject commit 65219f5705addf9c762e796c31ba914a395a9ff0 Subproject commit a69135ce066ed353424e3a3ef80dbfe4179224fe

View File

@ -1,7 +1,11 @@
import { DragDropModule } from "@angular/cdk/drag-drop"; import { DragDropModule } from "@angular/cdk/drag-drop";
import { DatePipe, registerLocaleData, CommonModule } from "@angular/common"; import { DatePipe, registerLocaleData, CommonModule } from "@angular/common";
import localeAf from "@angular/common/locales/af";
import localeAz from "@angular/common/locales/az"; import localeAz from "@angular/common/locales/az";
import localeBe from "@angular/common/locales/be";
import localeBg from "@angular/common/locales/bg"; import localeBg from "@angular/common/locales/bg";
import localeBn from "@angular/common/locales/bn";
import localeBs from "@angular/common/locales/bs";
import localeCa from "@angular/common/locales/ca"; import localeCa from "@angular/common/locales/ca";
import localeCs from "@angular/common/locales/cs"; import localeCs from "@angular/common/locales/cs";
import localeDa from "@angular/common/locales/da"; import localeDa from "@angular/common/locales/da";
@ -13,29 +17,37 @@ import localeEo from "@angular/common/locales/eo";
import localeEs from "@angular/common/locales/es"; import localeEs from "@angular/common/locales/es";
import localeEt from "@angular/common/locales/et"; import localeEt from "@angular/common/locales/et";
import localeFi from "@angular/common/locales/fi"; import localeFi from "@angular/common/locales/fi";
import localeFil from "@angular/common/locales/fil";
import localeFr from "@angular/common/locales/fr"; import localeFr from "@angular/common/locales/fr";
import localeHe from "@angular/common/locales/he"; import localeHe from "@angular/common/locales/he";
import localeHi from "@angular/common/locales/hi";
import localeHr from "@angular/common/locales/hr"; import localeHr from "@angular/common/locales/hr";
import localeHu from "@angular/common/locales/hu"; import localeHu from "@angular/common/locales/hu";
import localeId from "@angular/common/locales/id"; import localeId from "@angular/common/locales/id";
import localeIt from "@angular/common/locales/it"; import localeIt from "@angular/common/locales/it";
import localeJa from "@angular/common/locales/ja"; import localeJa from "@angular/common/locales/ja";
import localeKa from "@angular/common/locales/ka";
import localeKm from "@angular/common/locales/km";
import localeKn from "@angular/common/locales/kn"; import localeKn from "@angular/common/locales/kn";
import localeKo from "@angular/common/locales/ko"; import localeKo from "@angular/common/locales/ko";
import localeLv from "@angular/common/locales/lv"; import localeLv from "@angular/common/locales/lv";
import localeMl from "@angular/common/locales/ml"; import localeMl from "@angular/common/locales/ml";
import localeNb from "@angular/common/locales/nb"; import localeNb from "@angular/common/locales/nb";
import localeNl from "@angular/common/locales/nl"; import localeNl from "@angular/common/locales/nl";
import localeNn from "@angular/common/locales/nn";
import localePl from "@angular/common/locales/pl"; import localePl from "@angular/common/locales/pl";
import localePtBr from "@angular/common/locales/pt"; import localePtBr from "@angular/common/locales/pt";
import localePtPt from "@angular/common/locales/pt-PT"; import localePtPt from "@angular/common/locales/pt-PT";
import localeRo from "@angular/common/locales/ro"; import localeRo from "@angular/common/locales/ro";
import localeRu from "@angular/common/locales/ru"; import localeRu from "@angular/common/locales/ru";
import localeSi from "@angular/common/locales/si";
import localeSk from "@angular/common/locales/sk"; import localeSk from "@angular/common/locales/sk";
import localeSl from "@angular/common/locales/sl";
import localeSr from "@angular/common/locales/sr"; import localeSr from "@angular/common/locales/sr";
import localeSv from "@angular/common/locales/sv"; import localeSv from "@angular/common/locales/sv";
import localeTr from "@angular/common/locales/tr"; import localeTr from "@angular/common/locales/tr";
import localeUk from "@angular/common/locales/uk"; import localeUk from "@angular/common/locales/uk";
import localeVi from "@angular/common/locales/vi";
import localeZhCn from "@angular/common/locales/zh-Hans"; import localeZhCn from "@angular/common/locales/zh-Hans";
import localeZhTw from "@angular/common/locales/zh-Hant"; import localeZhTw from "@angular/common/locales/zh-Hant";
import { NgModule } from "@angular/core"; import { NgModule } from "@angular/core";
@ -217,8 +229,12 @@ import { GroupingsComponent } from "./vault/groupings.component";
import { ShareComponent } from "./vault/share.component"; import { ShareComponent } from "./vault/share.component";
import { VaultComponent } from "./vault/vault.component"; import { VaultComponent } from "./vault/vault.component";
registerLocaleData(localeAf, "af");
registerLocaleData(localeAz, "az"); registerLocaleData(localeAz, "az");
registerLocaleData(localeBe, "be");
registerLocaleData(localeBg, "bg"); registerLocaleData(localeBg, "bg");
registerLocaleData(localeBn, "bn");
registerLocaleData(localeBs, "bs");
registerLocaleData(localeCa, "ca"); registerLocaleData(localeCa, "ca");
registerLocaleData(localeCs, "cs"); registerLocaleData(localeCs, "cs");
registerLocaleData(localeDa, "da"); registerLocaleData(localeDa, "da");
@ -226,33 +242,41 @@ registerLocaleData(localeDe, "de");
registerLocaleData(localeEl, "el"); registerLocaleData(localeEl, "el");
registerLocaleData(localeEnGb, "en-GB"); registerLocaleData(localeEnGb, "en-GB");
registerLocaleData(localeEnIn, "en-IN"); registerLocaleData(localeEnIn, "en-IN");
registerLocaleData(localeEo, "eo");
registerLocaleData(localeEs, "es"); registerLocaleData(localeEs, "es");
registerLocaleData(localeEt, "et"); registerLocaleData(localeEt, "et");
registerLocaleData(localeEo, "eo");
registerLocaleData(localeFi, "fi"); registerLocaleData(localeFi, "fi");
registerLocaleData(localeFil, "fil");
registerLocaleData(localeFr, "fr"); registerLocaleData(localeFr, "fr");
registerLocaleData(localeHe, "he"); registerLocaleData(localeHe, "he");
registerLocaleData(localeHi, "hi");
registerLocaleData(localeHr, "hr"); registerLocaleData(localeHr, "hr");
registerLocaleData(localeHu, "hu"); registerLocaleData(localeHu, "hu");
registerLocaleData(localeId, "id"); registerLocaleData(localeId, "id");
registerLocaleData(localeIt, "it"); registerLocaleData(localeIt, "it");
registerLocaleData(localeJa, "ja"); registerLocaleData(localeJa, "ja");
registerLocaleData(localeKa, "ka");
registerLocaleData(localeKm, "km");
registerLocaleData(localeKn, "kn"); registerLocaleData(localeKn, "kn");
registerLocaleData(localeKo, "ko"); registerLocaleData(localeKo, "ko");
registerLocaleData(localeLv, "lv"); registerLocaleData(localeLv, "lv");
registerLocaleData(localeMl, "ml"); registerLocaleData(localeMl, "ml");
registerLocaleData(localeNb, "nb"); registerLocaleData(localeNb, "nb");
registerLocaleData(localeNl, "nl"); registerLocaleData(localeNl, "nl");
registerLocaleData(localeNn, "nn");
registerLocaleData(localePl, "pl"); registerLocaleData(localePl, "pl");
registerLocaleData(localePtBr, "pt-BR"); registerLocaleData(localePtBr, "pt-BR");
registerLocaleData(localePtPt, "pt-PT"); registerLocaleData(localePtPt, "pt-PT");
registerLocaleData(localeRo, "ro"); registerLocaleData(localeRo, "ro");
registerLocaleData(localeRu, "ru"); registerLocaleData(localeRu, "ru");
registerLocaleData(localeSi, "si");
registerLocaleData(localeSk, "sk"); registerLocaleData(localeSk, "sk");
registerLocaleData(localeSl, "sl");
registerLocaleData(localeSr, "sr"); registerLocaleData(localeSr, "sr");
registerLocaleData(localeSv, "sv"); registerLocaleData(localeSv, "sv");
registerLocaleData(localeTr, "tr"); registerLocaleData(localeTr, "tr");
registerLocaleData(localeUk, "uk"); registerLocaleData(localeUk, "uk");
registerLocaleData(localeVi, "vi");
registerLocaleData(localeZhCn, "zh-CN"); registerLocaleData(localeZhCn, "zh-CN");
registerLocaleData(localeZhTw, "zh-TW"); registerLocaleData(localeZhTw, "zh-TW");

View File

@ -17,42 +17,54 @@ export class I18nService extends BaseI18nService {
// Please leave 'en' where it is, as it's our fallback language in case no translation can be found // Please leave 'en' where it is, as it's our fallback language in case no translation can be found
this.supportedTranslationLocales = [ this.supportedTranslationLocales = [
"en", "en",
"af",
"az", "az",
"be",
"bg", "bg",
"bn",
"bs",
"ca", "ca",
"cs", "cs",
"da", "da",
"de", "de",
"el", "el",
"eo",
"en-GB", "en-GB",
"en-IN", "en-IN",
"eo",
"es", "es",
"et", "et",
"fi", "fi",
"fil",
"fr", "fr",
"he", "he",
"hi",
"hr", "hr",
"hu", "hu",
"id", "id",
"it", "it",
"ja", "ja",
"ka",
"km",
"kn", "kn",
"ko", "ko",
"lv", "lv",
"ml", "ml",
"nb", "nb",
"nl", "nl",
"nn",
"pl", "pl",
"pt-PT", "pt-PT",
"pt-BR", "pt-BR",
"ro", "ro",
"ru", "ru",
"si",
"sk", "sk",
"sl",
"sr", "sr",
"sv", "sv",
"tr", "tr",
"uk", "uk",
"vi",
"zh-CN", "zh-CN",
"zh-TW", "zh-TW",
]; ];