Hi. I’ve just finished to translate all my app in multiple languages and now I want to get the specific content for each language but it doesn’t work and I don’t know why.
Here is my code.
Something is wrong but I can’t figure out what!
Thank you!
Edit: It seems that this is not working on first tab land. If I use this on the second tab is working. But one thing is also not working. The http.get is not updating after I change the language from my account only the images where I have pic_{{‘Language.db’ | translate}}.jpg ( language.db = en, es, pt )
Thank you. Still not working!
When I first enter on my app on home.html it doesn’t get the Language.db. I’ve created a ionRefresh, so after I refresh only it works but at first entry it returns Language.db not “en” or pt.
Also from account.html if I change the language to pt the http.get is not updated only the html on each pages.
Edit:
I managed to get the language at first app entry. I’ve moved the default language from app.compontent.ts to home.ts
translate.setDefaultLang('en');
But now how can I update the http.get after I change the language from account.html ? I have this.