Open mparpaillon opened 6 years ago
I have a similar problem where I'm using a store
that gets filled with translations from an API.
Added this piece of code as a quick fix
this.store
.select(state => state.ui.i18n)
.subscribe(() => this.translate.reloadLang(this.translate.currentLang));
I'm submitting a ... (check one with "x")
Current behavior When I return an Observable in my TranslateFirebaseLoader inside a Observable.merge, only the first Observable emits.
Expected/desired behavior The TranslateFirebaseLoader should check first LocalStorage and emits the value, then fetch remote translations, update localStorage and emits the updated value.
Reproduction of the problem
Here is my code:
ngx-translate version: 8.0.0 Angular version: 4.4.3 Ionic version: 3.7.1 Browser: all
Thanks