Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-3719

Locale selector displays incorrect label for Chinese [GHI#42575]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [x] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      login/ui

      Describe the bug

      When both Chinese Traditional and Chinese Simplified are enabled, the locale selector on the login page displays both options as "Chinese (Simplified) (中文 (简体))", as shown in the image.

      <img width="1902" height="1266" alt="Image" src="https://github.com/user-attachments/assets/94c87c50-0b70-4dd1-88b3-70f654722a33" />

      Version

      nightly

      Regression

      [ ] The issue is a regression

      Expected behavior

      The locale selector should display two distinct options:

      • Chinese (Traditional) (中文 (繁體))
      • Chinese (Simplified) (中文 (简体))

      Actual behavior

      Both options are displayed as "Chinese (Simplified) (中文 (简体))" in the locale selector.

      How to Reproduce?

      1. Go to Realm Settings → Localization tab.
      2. Enable Internationalization.
      3. In Supported Locales, enable both Chinese (Traditional) and Chinese (Simplified).
      4. Open the login page and check the locale selector.

      Anything else?

      Might caused by LocaleBean: https://github.com/keycloak/keycloak/blob/73a4020baad67f6d0c676548cce47216dc0270a6/services/src/main/java/org/keycloak/theme/beans/LocaleBean.java#L42-L58

      Related PR: #41267

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak SRE
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: