Montenegrin (cnr-ME) language support | Community
Skip to main content
Level 4
September 23, 2025
Solved

Montenegrin (cnr-ME) language support

  • September 23, 2025
  • 2 replies
  • 294 views

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"/>
Best answer by Abie

Hi @giuseppebaglio 

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!

2 replies

giuseppebaglio
Level 10
September 24, 2025

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>

 

Source:

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.

 

 
AbieAccepted solution
Level 4
September 24, 2025

Hi @giuseppebaglio 

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!