In app.module.ts, translateModule is imported with a default language en.
in app.component.ts, this.translate.currentLang = undefined.
I need to use this.translate.use('en');I feel it is a bit redundant to get this.translate.currentLang = 'en'
Expected behavior
this.translate.currentLang = 'en'. as soon a defaultLanguage is set
Minimal reproduction of the problem with instructions
Current behavior
In app.module.ts,
translateModule
is imported with a default languageen
.in app.component.ts,
this.translate.currentLang = undefined
. I need to usethis.translate.use('en');
I feel it is a bit redundant to getthis.translate.currentLang = 'en'
Expected behavior
this.translate.currentLang = 'en'
. as soon a defaultLanguage is setMinimal reproduction of the problem with instructions
app.module.ts
app.component.ts
Environment