We need to support a new language - Montenegrin with the code as - cnr-ME.
Can AEM even support it? By checking some of the existing language codes, what I see that aem can support 2 letters like "fr" or 5 letters like "fr-FR" but not 6 letters. I tried adding the language code under - /apps/wcm/core/resources/languages/.content.xml but it is still not getting resolved and we get the null value.
Any insight will be helpful.
Locale locale = LanguageUtil.getLocale("cnr-ME");
System.out.println(locale); // prints null instead of cnr_ME
<cnr
jcr:primaryType="nt:unstructured"
country="*"
defaultCountry="cnr_me"
language="Montenegro"/>
<cnr_me
jcr:primaryType="nt:unstructured"
country="Montenegro"
language="Montenegrin"/>
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @giuseppebag
Please raise feature request for this. There is no OOTB support for three letter language code in the Experience Cloud (Creative cloud does support).
Until then, I would suggest to write custom implementation.
I hope it helps.
Thanks!
hi @vsharm,
AEM does not officially support 6-character language codes such as cnr-ME out of the box. This is primarily because AEM’s language and country code handling is based on ISO-639-1 (two-letter language codes) and ISO-3166 (country codes), together yielding the typical format <language>-<COUNTRY> or <language>_<COUNTRY>
The language code must be in one of the following formats:
- <language-code>The supported language code is a two-letter code as defined by ISO-639-1, for example en.
- <language-code>_<country-code> or <language-code>-<country-code>The supported country code is a lower-case or upper-case two-letter code as defined by ISO 3166, for example en_US, en_us, en_GB, en-gb.
Views
Replies
Total Likes
Hi @giuseppebag
Please raise feature request for this. There is no OOTB support for three letter language code in the Experience Cloud (Creative cloud does support).
Until then, I would suggest to write custom implementation.
I hope it helps.
Thanks!
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies