diff --git a/projects/ngx-translate/core/src/lib/translate.store.ts b/projects/ngx-translate/core/src/lib/translate.store.ts index 4ab2b166..4038c235 100644 --- a/projects/ngx-translate/core/src/lib/translate.store.ts +++ b/projects/ngx-translate/core/src/lib/translate.store.ts @@ -10,7 +10,7 @@ export class TranslateStore { /** * The lang currently used */ - public currentLang: string = this.defaultLang; + public currentLang: string; /** * a list of translations per lang @@ -45,4 +45,8 @@ export class TranslateStore { * }); */ public onDefaultLangChange: EventEmitter = new EventEmitter(); + + constructor() { + this.currentLang = this.currentLang; + } }