Bug 1924188
Summary: | Language selector dropdown doesn't always pre-select the language | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | ralpert |
Component: | Management Console | Assignee: | ralpert |
Status: | CLOSED ERRATA | QA Contact: | Yanping Zhang <yanpzhan> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.7 | CC: | aos-bugs, jokerman, yapei |
Target Milestone: | --- | ||
Target Release: | 4.7.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: The react-i18next equivalent of i18next.language was being used. This value only returns the current active language. The language we display is more complicated since we default variants of languages (such as en-us) to the parent (en). This meant that en-us or a language we don't support, such as de, would never "match" and auto-select the value in the dropdown.
Consequence: The language was not auto-selected in the dropdown.
Fix: I updated the logic to compare the languages we support with i18next.languages, which returns an array of languages, including the detected language and defaults being used.
Result: The language is auto-selected.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2021-02-24 15:57:48 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
ralpert
2021-02-02 18:29:36 UTC
Checked on ocp 4.7 cluster with payload 4.7.0-0.nightly-2021-02-03-165316. 1. Set browser language to en-us or German.(Clear browser cache) 2. Login console, and open Language preferences modal, The English language is pre-selected. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:5633 |