This is my problem: I’m using ng2-translate which works great. But i’m facing this issue where if I have translations inside my options of a select item when I switch language the select is not affected.
Also I have the proper translation in my file (en.json and fr.json) because if I load the profile page with either en or fr as default language the text is OK in the select options. But if i try to change it on the fly it doesn’t work!
Thanks for your answer. Unfortunately it doesn’t seems to fix the issue. But from what I can see the problem is only when displaying the value on the selected item. If I click the select to choose either male or female it works fine.
As you can see in the upper right of the screenshot it shows “Homme” but everything is translated to english. But in the select box where I can choose the gender it’s properly translated.
@george_eleutheriou Again, this is not using the select component. My issue is with this component. It’s only happening for the translation of the current selected value which is displayed. If I click the select component to change the value then all select options are translated correctly but not my selected option.
Here you can see what I’m talking about, on the upper right corner it’s still “Homme” but in the options I can click it’s translated properly:
that’s my only problem so far. before i added translation pipe i could see the default value before clicking on it. after i could not. it just shows up when i click on it first. But translation works fine.
@george_eleutheriou when you translate, are you doing it on the fly (with a button in the app) or you change the default language and then reload the app?
And from what I tried for your default I was able to make this work if I set the value where I define the variable in the Class. If I try to set it in the constructor it doesn’t work.
I’ve abandoned ionic… so many bugs and stability issues… cant do anything without getting stupid errors and bugs. That’s the problem of building a framework on top of another.