-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass "?locale" URL query param to oVirt API #131
Conversation
@jelkosz , please try. |
Blocked by missing translations in oVirt API. |
@mareklibra it is not blocked anymore, we can normally use the ?locale=en_US or whatever now and it will work. |
Needs rebase |
Review status: 0 of 3 files reviewed at latest revision, 3 unresolved discussions, some commit checks failed. src/config.js, line 18 at r1 (raw file):
Maybe we can unify locale resolution with intl module:
or use src/helpers.js, line 98 at r1 (raw file):
Is there any need for How about src/helpers.js, line 100 at r1 (raw file):
for Comments from Reviewable |
src/helpers.js
Outdated
return '' | ||
} | ||
|
||
return decodeURIComponent(results[2].replace(/\+/g, ' ')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do logging of result here
c353c3a
to
7560ac3
Compare
Rebased |
With this change, the oVirt API returns localized error messages, so they can be displayed to the user without additional modification. Fixes: #110
7560ac3
to
7795c48
Compare
Review status: 0 of 3 files reviewed at latest revision, 4 unresolved discussions. src/config.js, line 18 at r1 (raw file): Previously, jniederm wrote…
good point, but let's postpone that for a follow-up due to time constraints. Must be properly verified against engine side due to potential differences (i.e. '-' vs '_' or different browser locale) src/helpers.js, line 98 at r1 (raw file): Previously, jniederm wrote…
Not anymore, removed src/helpers.js, line 100 at r1 (raw file): Previously, jniederm wrote…
Good point, but this works as well. src/helpers.js, line 113 at r1 (raw file): Previously, mareklibra (Marek Libra) wrote…
Done. Comments from Reviewable |
Reviewed 3 of 3 files at r2. src/config.js, line 18 at r1 (raw file): Previously, mareklibra (Marek Libra) wrote…
based on offline communication: consumers are different: web-ui localization vs Comments from Reviewable |
With this change, the oVirt API returns localized error messages, so
they can be displayed to the user without additional modification.
Fixes: #110
This change is