From c6e324bf1633ccfb6da295df519d06484c1b6044 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 15 Jan 2019 20:47:48 -0500 Subject: [PATCH] en-GB locale --- src/popup/app.module.ts | 2 ++ src/services/i18n.service.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/popup/app.module.ts b/src/popup/app.module.ts index 2e04fa4a08..618eb34352 100644 --- a/src/popup/app.module.ts +++ b/src/popup/app.module.ts @@ -72,6 +72,7 @@ import localeBg from '@angular/common/locales/bg'; import localeCs from '@angular/common/locales/cs'; import localeDa from '@angular/common/locales/da'; import localeDe from '@angular/common/locales/de'; +import localeEnGb from '@angular/common/locales/en-GB'; import localeEs from '@angular/common/locales/es'; import localeEt from '@angular/common/locales/et'; import localeFa from '@angular/common/locales/fa'; @@ -103,6 +104,7 @@ registerLocaleData(localeBg, 'bg'); registerLocaleData(localeCs, 'cs'); registerLocaleData(localeDa, 'da'); registerLocaleData(localeDe, 'de'); +registerLocaleData(localeEnGb, 'en-GB'); registerLocaleData(localeEs, 'es'); registerLocaleData(localeEt, 'et'); registerLocaleData(localeFa, 'fa'); diff --git a/src/services/i18n.service.ts b/src/services/i18n.service.ts index 0c2168a97c..e795c6dc78 100644 --- a/src/services/i18n.service.ts +++ b/src/services/i18n.service.ts @@ -8,7 +8,7 @@ export default class I18nService extends BaseI18nService { }); this.supportedTranslationLocales = [ - 'en', 'bg', 'cs', 'da', 'de', 'es', 'et', 'fa', 'fi', 'fr', 'hr', 'hu', 'id', 'it', 'ja', + 'en', 'bg', 'cs', 'da', 'de', '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', 'zh-CN', 'zh-TW', ];