Validations translations not showing in UI until refresh
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tripleo |
Fix Released
|
Medium
|
Jiri Tomasek |
Bug Description
Steps to reproduce:
-------------------
1. Login to the UI
2. Select another language, e.g. Japanese
Expected results:
-----------------
3. The entire (javascript parts) UI switches to Japanese
Actual results:
---------------
3. The main pane on the left refreshes. However, the Validations panel, title, buttons, validation details still appears in English, until the Refresh button is pressed. (Then everything, including the details popup appears correctly in Japanese.)
Maybe we can trigger a refresh on language change...?
Another issue that may or may not be related:
- In the navigation bar, Logout switches to Japanese directly, but "Language" doesn't. I needed to refresh the entire webpage for it to be shown in Japanese
(I can file this in a separate bug if preferred.)
Changed in tripleo: | |
milestone: | ocata-rc1 → ocata-rc2 |
all this gets IMHO fixed by adding this.props. detectLanguage( MESSAGES) ; to componentWillRe ceiveProps in I18nProvider (under a condition that a language has changed)