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', ]; }