LocalizationUtils.getLocalizationRoot Unexpected Response | Adobe Higher Education
Skip to main content
New Member
February 3, 2025
해결됨

LocalizationUtils.getLocalizationRoot Unexpected Response

  • February 3, 2025
  • 1 답변
  • 416 조회

Hi everyone,

I’m encountering an issue with the LocalizationUtils.getLocalizationRoot method in AEM. When I call this method on a page, I get an unexpected result.

Example:

  • Page Path: /content/my-site/uk/en/my-page
  • Expected Result: /content/my-site/uk/en
  • Actual Result: /content/my-site/uk

I suspect this discrepancy is because “uk” is being interpreted as the language code for Ukrainian, whereas in my case, it represents the United Kingdom (UK).

Question: Is this behavior a bug, or is there a configuration I might be missing to correctly interpret “uk” as the United Kingdom?

Thanks in advance for your help!

최고의 답변: rishim22446870

Could you rename the 'uk' folder to 'en_GB' to align with the correct locale naming convention? The 'uk' code refers to Ukrainian, while 'en_GB' is the proper code for the United Kingdom.

1 답변

rishim22446870
Adobe Employee
Adobe Employee
February 4, 2025

Could you rename the 'uk' folder to 'en_GB' to align with the correct locale naming convention? The 'uk' code refers to Ukrainian, while 'en_GB' is the proper code for the United Kingdom.

DomenicSc작성자
New Member
February 11, 2025

Yes, I can do this. Is there any technical documentation or list of the standards, and / or list of countries and languages that AEM supports? Or is there source code that I can look at for this?