Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-15520

XUI Localisation Falls Back To AM-Default "EN" Instead Of Language-Default

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 6.0.0.7, 6.5.2
    • Fix Version/s: 6.0.1, 7.0.0, 6.5.3
    • Component/s: XUI
    • Labels:
    • Sprint:
      AM Sustaining Sprint 69
    • Story Points:
      3
    • Needs backport:
      No
    • Support Ticket IDs:
    • Verified Version/s:
    • Needs QA verification:
      Yes
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      Bug description

      When the XUI translation is localised, instead of failing back to the language-default, the XUI falls back to the AM-default en. For example, if the translation is to Spanish es and locale is set to Spain es-ES, after modification of the JSON set, XUI reverts to unlocalised English. Identical behaviour is observed with localised English, i.e. en-CA falls back to en. 

      How to reproduce the issue: 

      1. Create additional <locale> directories under src/main/resources/locales/

      2. Compile XUI and unzip the build/*.zip file in XUI

      3. Create a copy of "en" folder, and name "es"

      4. Modify text in translation.json

      5. Set browser language to "es-es" (in language preferences)

      6. Call login url without locale parameter => english text appears (text in Spanish expected)

       

      In addition, according to: 

      https://backstage.forgerock.com/knowledge/kb/article/a62049134#nonEnglish 

      the path org/forgerock/commons/ui/common/main/i18nManager, which is defined in index.html, is not available in the compiled XUI. 

        Attachments

          Activity

            People

            Assignee:
            chee-weng.chea C-Weng C
            Reporter:
            alex.belovski Alex Belovski
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: