How to Automatically Set the Language Dropdown to 'Japanese' for a Language Copy in AEM | Community
Skip to main content
veerareddyc1015
Level 3
December 3, 2024

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

  • December 3, 2024
  • 2 replies
  • 1701 views

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?

2 replies

arunpatidar
Community Advisor
Community Advisor
December 3, 2024

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
veerareddyc1015
Level 3
December 3, 2024

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.

arunpatidar
Community Advisor
Community Advisor
December 3, 2024

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
kautuk_sahni
Community Manager
Community Manager
December 16, 2024

@veerareddyc1015 Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni