From f08506d690d828689b39cbd0295c5d901139c381 Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Mon, 16 Mar 2020 01:23:35 -0400 Subject: [PATCH] When locale 'en' is selected, no translation is retrieved --- src/main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 8dfc77da..77ff4622 100644 --- a/src/main.ts +++ b/src/main.ts @@ -13,7 +13,7 @@ if (environment.production) { } const locale = localStorage.getItem('locale'); -if (locale) { +if (locale && locale !== 'en') { getTranslations(`./assets/i18n/messages.${locale}.json`).then( (data: ParsedTranslationBundle) => { loadTranslations(data as any); @@ -31,7 +31,6 @@ if (locale) { }); }); } else { - console.log('no locale'); import('./app/app.module').then(module => { platformBrowserDynamic() .bootstrapModule(module.AppModule)