From 86e6c31820d14bda2c7185a15ea2fce62adaa9b2 Mon Sep 17 00:00:00 2001 From: Trey Greer <61418192+tgreer-bw@users.noreply.github.com> Date: Mon, 12 Jul 2021 08:19:56 -0400 Subject: [PATCH] add AZ language (#1079) --- src/app/oss.module.ts | 4 +++- src/services/i18n.service.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/oss.module.ts b/src/app/oss.module.ts index b586917277..a41e144936 100644 --- a/src/app/oss.module.ts +++ b/src/app/oss.module.ts @@ -191,6 +191,7 @@ import { I18nPipe } from 'jslib-angular/pipes/i18n.pipe'; import { SearchCiphersPipe } from 'jslib-angular/pipes/search-ciphers.pipe'; import { SearchPipe } from 'jslib-angular/pipes/search.pipe'; +import localeAz from '@angular/common/locales/az'; import localeBg from '@angular/common/locales/bg'; import localeCa from '@angular/common/locales/ca'; import localeCs from '@angular/common/locales/cs'; @@ -229,9 +230,10 @@ import localeUk from '@angular/common/locales/uk'; import localeZhCn from '@angular/common/locales/zh-Hans'; import localeZhTw from '@angular/common/locales/zh-Hant'; +registerLocaleData(localeAz, 'az'); +registerLocaleData(localeBg, 'bg'); registerLocaleData(localeCa, 'ca'); registerLocaleData(localeCs, 'cs'); -registerLocaleData(localeBg, 'bg'); registerLocaleData(localeDa, 'da'); registerLocaleData(localeDe, 'de'); registerLocaleData(localeEl, 'el'); diff --git a/src/services/i18n.service.ts b/src/services/i18n.service.ts index 3daff44238..a76fbba0c7 100644 --- a/src/services/i18n.service.ts +++ b/src/services/i18n.service.ts @@ -11,7 +11,7 @@ export class I18nService extends BaseI18nService { }); this.supportedTranslationLocales = [ - 'en', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'eo', 'en-GB', 'en-IN', 'es', 'et', 'fi', 'fr', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lv', 'ml', 'nb', + 'az', 'en', 'bg', 'ca', 'cs', 'da', 'de', 'el', 'eo', 'en-GB', 'en-IN', 'es', 'et', 'fi', 'fr', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'kn', 'ko', 'lv', 'ml', 'nb', 'nl', 'pl', 'pt-PT', 'pt-BR', 'ro', 'ru', 'sk', 'sr', 'sv', 'tr', 'uk', 'zh-CN', 'zh-TW', ]; }