From 44c4fd2e806e44201fccb397d6dd7dff636e3119 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 15 Sep 2020 13:38:36 -0400 Subject: [PATCH] language updates --- src/app/app.module.ts | 4 ++++ src/services/i18n.service.ts | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index b52d8ddce6..149cd5934c 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -63,6 +63,7 @@ import { VaultComponent } from './vault/vault.component'; import { ViewComponent } from './vault/view.component'; import { registerLocaleData } from '@angular/common'; +import localeBe from '@angular/common/locales/be'; import localeBg from '@angular/common/locales/bg'; import localeCa from '@angular/common/locales/ca'; import localeCs from '@angular/common/locales/cs'; @@ -81,6 +82,7 @@ import localeId from '@angular/common/locales/id'; import localeIt from '@angular/common/locales/it'; import localeJa from '@angular/common/locales/ja'; import localeKo from '@angular/common/locales/ko'; +import localeMl from '@angular/common/locales/ml'; import localeNb from '@angular/common/locales/nb'; import localeNl from '@angular/common/locales/nl'; import localePl from '@angular/common/locales/pl'; @@ -97,6 +99,7 @@ import localeVi from '@angular/common/locales/vi'; import localeZhCn from '@angular/common/locales/zh-Hans'; import localeZhTw from '@angular/common/locales/zh-Hant'; +registerLocaleData(localeBe, 'be'); registerLocaleData(localeBg, 'bg'); registerLocaleData(localeCa, 'ca'); registerLocaleData(localeCs, 'cs'); @@ -115,6 +118,7 @@ registerLocaleData(localeId, 'id'); registerLocaleData(localeIt, 'it'); registerLocaleData(localeJa, 'ja'); registerLocaleData(localeKo, 'ko'); +registerLocaleData(localeMl, 'ml'); registerLocaleData(localeNb, 'nb'); registerLocaleData(localeNl, 'nl'); registerLocaleData(localePl, 'pl'); diff --git a/src/services/i18n.service.ts b/src/services/i18n.service.ts index b5d1d1dd5f..a09c8427ac 100644 --- a/src/services/i18n.service.ts +++ b/src/services/i18n.service.ts @@ -13,8 +13,8 @@ export class I18nService extends BaseI18nService { }); this.supportedTranslationLocales = [ - 'en', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', 'es', 'et', 'fa', 'fi', 'fr', 'hr', 'hu', 'id', 'it', - 'ja', 'ko', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sk', 'sv', 'th', 'tr', 'uk', 'vi', + 'en', 'be', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', 'es', 'et', 'fa', 'fi', 'fr', 'hr', 'hu', 'id', + 'it', 'ja', 'ko', 'ml', 'nb', 'nl', 'pl', 'pt-BR', 'pt-PT', 'ro', 'ru', 'sk', 'sv', 'th', 'tr', 'uk', 'vi', 'zh-CN', 'zh-TW', ]; }