Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

MSM New language (Indonesian) vs Page.getLanguage()

ivyl63366634
Level 1
Level 1

Hi, I've used the recommended language code (ISO-639-1) + country code (ISO 3166) for Indonesian - which is id_ID. 

Reference: http://docs.adobe.com/docs/en/cq/current/administering/multi_site_manager.html#Adding%20a%20new%20la...

After I set the page language to (id_id), I tried to get the page locale programmatically using Page.getLanguage() and pageProperties.getInherited("jcr:language", ""), but both methods return me in_id instead of id_id.

In the jcr:content node, the jcr:language is stored as id_id which is correct. Any idea why it is retrieved as in_id instead?

0 Replies