From 9abdefa94782bf8ea51ce94ba0af4c078c556cf4 Mon Sep 17 00:00:00 2001 From: Trey Greer <61418192+tgreer-bw@users.noreply.github.com> Date: Thu, 13 May 2021 17:08:27 -0400 Subject: [PATCH] Added additional languages (#975) --- src/app/app.module.ts | 20 ++++++++++++++++++++ src/services/i18n.service.ts | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 736c9e5560..9c03e58f59 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -193,14 +193,21 @@ import { } from '@angular/common'; import localeCa from '@angular/common/locales/ca'; import localeCs from '@angular/common/locales/cs'; +import localeBg from '@angular/common/locales/bg'; import localeDa from '@angular/common/locales/da'; import localeDe from '@angular/common/locales/de'; import localeEl from '@angular/common/locales/el'; import localeEnGb from '@angular/common/locales/en-GB'; +import localeEnIn from '@angular/common/locales/en-IN'; import localeEs from '@angular/common/locales/es'; import localeEt from '@angular/common/locales/et'; +import localeEo from '@angular/common/locales/eo'; +import localeFi from '@angular/common/locales/fi'; import localeFr from '@angular/common/locales/fr'; import localeHe from '@angular/common/locales/he'; +import localeHr from '@angular/common/locales/hr'; +import localeHu from '@angular/common/locales/hu'; +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'; @@ -211,23 +218,33 @@ import localeNl from '@angular/common/locales/nl'; import localePl from '@angular/common/locales/pl'; import localePtBr from '@angular/common/locales/pt'; import localePtPt from '@angular/common/locales/pt-PT'; +import localeRo from '@angular/common/locales/ro'; import localeRu from '@angular/common/locales/ru'; import localeSk from '@angular/common/locales/sk'; +import localeSr from '@angular/common/locales/sr'; import localeSv from '@angular/common/locales/sv'; +import localeTr from '@angular/common/locales/tr'; import localeUk from '@angular/common/locales/uk'; import localeZhCn from '@angular/common/locales/zh-Hans'; import localeZhTw from '@angular/common/locales/zh-Hant'; registerLocaleData(localeCa, 'ca'); registerLocaleData(localeCs, 'cs'); +registerLocaleData(localeBg, 'bg'); registerLocaleData(localeDa, 'da'); registerLocaleData(localeDe, 'de'); registerLocaleData(localeEl, 'el'); registerLocaleData(localeEnGb, 'en-GB'); +registerLocaleData(localeEnIn, 'en-IN'); registerLocaleData(localeEs, 'es'); registerLocaleData(localeEt, 'et'); +registerLocaleData(localeEo, 'eo'); +registerLocaleData(localeFi, 'fi'); registerLocaleData(localeFr, 'fr'); registerLocaleData(localeHe, 'he'); +registerLocaleData(localeHr, 'hr'); +registerLocaleData(localeHu, 'hu'); +registerLocaleData(localeId, 'id'); registerLocaleData(localeIt, 'it'); registerLocaleData(localeJa, 'ja'); registerLocaleData(localeKo, 'ko'); @@ -238,9 +255,12 @@ registerLocaleData(localeNl, 'nl'); registerLocaleData(localePl, 'pl'); registerLocaleData(localePtBr, 'pt-BR'); registerLocaleData(localePtPt, 'pt-PT'); +registerLocaleData(localeRo, 'ro'); registerLocaleData(localeRu, 'ru'); registerLocaleData(localeSk, 'sk'); +registerLocaleData(localeSr, 'sr'); registerLocaleData(localeSv, 'sv'); +registerLocaleData(localeTr, 'tr'); registerLocaleData(localeUk, 'uk'); registerLocaleData(localeZhCn, 'zh-CN'); registerLocaleData(localeZhTw, 'zh-TW'); diff --git a/src/services/i18n.service.ts b/src/services/i18n.service.ts index 74346e8a3b..b3a787f89e 100644 --- a/src/services/i18n.service.ts +++ b/src/services/i18n.service.ts @@ -11,8 +11,8 @@ export class I18nService extends BaseI18nService { }); this.supportedTranslationLocales = [ - 'en', 'ca', 'cs', 'da', 'de', 'el', 'en-GB', 'es', 'et', 'fr', 'he', 'it', 'ja', 'ko', 'lv', 'ml', 'nb', - 'nl', 'pl', 'pt-PT', 'pt-BR', 'ru', 'sk', 'sv', 'uk', 'zh-CN', 'zh-TW', + 'en', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'eo', 'en-GB', 'en-IN', 'es', 'et', 'fi', 'fr', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'ko', 'lv', 'ml', 'nb', + 'nl', 'pl', 'pt-PT', 'pt-BR', 'ro', 'ru', 'sk', 'sr', 'sv', 'tr', 'uk', 'zh-CN', 'zh-TW', ]; } }