LocalizationUtils.getLocalizationRoot Unexpected Response
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!