Expand my Community achievements bar.

How to Automatically Set the Language Dropdown to 'Japanese' for a Language Copy in AEM

Avatar

Level 2

Hi Team,

My site structure follows the pattern /content/sample/language-master/en, and I am currently creating a Japanese language copy from the English master. While the language copy is successfully created at /content/sample/language-master/ja, the issue arises when I check the Advanced tab in the page properties. The language dropdown still shows "English" instead of "Japanese." Could you guide me on how to ensure the language dropdown automatically updates to "Japanese" during the creation process, without requiring manual selection?

5 Replies

Avatar

Community Advisor

Hi @veerareddyc1015 
I don't think so the jcr:language property will gets rollout. It is excluded OOTB from "CQ MSM Content Update Action"

You have to set language property only on root page of the tree e.g. /content/mysite/jp/jp.

 

https://techrevel.blog/2019/09/26/msm-rollout-excluding-content-updates/ 



Arun Patidar

Avatar

Level 2

Thanks Arun for the quick reply.
I am facing the issue once I create a "Japanese" language copy from English and open the properties of /content/sample/language-master/ja and go to the Advanced tab.

Avatar

Community Advisor

Hi @veerareddyc1015 

What is the value of jcr:language in your master page, e.g., /content/sample/language-master/ja?

 

I believe that when you create a new live copy and the master page already has the language set, those properties will roll out as expected. However, if you later update the property in the master, As expected the changes won’t reflect in the live copy due to the exclusion rule jcr:*



Arun Patidar

Avatar

Level 2

Thanks Arun,
We don’t need to focus on the live copy for now; my issue is with the language copy. Create a Japanese language copy from English, then open the page properties, navigate to the advanced tab, and check the value in the language dropdown. I expect the value to be Japanese, but it still shows English.

 

Thanks in Advance.

Veera

Avatar

Community Advisor

Hi @veerareddyc1015 

While creating language copies, how are you doing translation manual or automated?

I am not sure if this is the default behaviour or not? Can you try in vanilla instances.

 

same question asked here as well

https://stackoverflow.com/questions/42023552/can-the-jcrlanguage-property-be-configured-automaticall... 



Arun Patidar