-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins 2.8, Latest version of BlueOcean plugin (running on https://ci.blueocean.io/)
-
-
tethys
The language does change when you change the language setting in Chrome's Settings (chrome://settings/ -> Advanced Settings / Languages). The problem seems to be specific to the Quick Language Switcher for Chrome and maybe other such plugins.
Reproduce the problem:
- Install any Locale changer extension for Chrome (or your browser), such as Quick Language Switcher for Chrome
- Switch to Spanish with the extension
- Go to https://ci.blueocean.io/
- Check that Jenkins is displayed in Spanish.
- Go to https://ci.blueocean.io/blue/pipelines
- BlueOcean is displayed in English instead of Spanish
Spanish translation is done in BlueOcean, so it should display BlueOcean pages in Spanish.
- is duplicated by
-
JENKINS-40614 i18n - Switch language of UI.
-
- Resolved
-
I did some further investigations.
W3C states content should be delivered according to the 'accept-language' HTTP header (the Quick Language Switcher is doing this).
Jenkins 'old' UI follows the old pattern server-client requests. Thus language is detected via the headers.
However with React, it is detected from the browser. Thus the code may not have easily access to this HTTP header.
The code is looking at the browser's locale:
Some additional explanations can be found here (especially difference between server and browser locale detection).
The current implementation seems to be correct for the current usage until somebody will its OS language different from its browser's language (check previous link for explanation).
The only solution I see would be to handle the language detection from the server and send this information back to the React code.
tfennelly With this additional data, maybe this issue is not a bug but an enhancement to have a better behaviour. WDYT ? It could be merged in the story that will implement language selection ?