Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Unable to Create Language Copy of a page for language code present within an existing project

Avatar

Level 2

To create Language Copy of a page to one on the language code present within the existing language-master is currently possible via siteadmin: https://experienceleague.adobe.com/en/docs/experience-manager-65/content/sites/administering/introdu....

 

The same is not possible via create language copy present under sites console. Here the language code present under the existing language-master is not available to select in the target language dropdown.

 

I am little curious why so? Any one has any idea whether this is the expected design process for language copy creation within an existing language-master or do we have any other way?

2 Replies

Avatar

Level 6
The Create Language Copy wizard in the Sites console is designed to create a new language copy from an existing language master (typically the English master). It allows you to select the target language from the list of available language codes in AEM.

However, if you already have a language master set up (e.g. French) and want to create a new language copy within that master (e.g. French-Canadian), the target language code (fr-ca) may not be available in the Create Language Copy wizard dropdown. This is because the wizard is intended for creating new language masters, not sub-language copies within an existing master.
 

Avatar

Level 8

Hi @MaheshKPati ,

The behavior you are observing is expected and by design. When creating a language copy of a page in AEM, the target language dropdown in the Create Language Copy dialog only displays the languages that are defined in the Language Copy Configuration for the site. If the language code present under the existing language-master is not available in the target language dropdown, it means that the language is not defined in the Language Copy Configuration for the site.

To create a Language Copy of a page for a language code that is not defined in the Language Copy Configuration, you can follow these steps:

1. Go to the Language Copy Configuration for the site. This can be accessed via the Site Administration console.

2. Add the language code that you want to create a Language Copy for to the Language Copy Configuration. This will make the language available in the target language dropdown in the Create Language Copy dialog.

3. Go to the page that you want to create a Language Copy for and select Create > Language Copy from the toolbar.

4. In the Create Language Copy dialog, select the target language from the dropdown. The language code that you added to the Language Copy Configuration should now be available in the dropdown.

5. Complete the remaining fields in the Create Language Copy dialog and click Create.

This should create a Language Copy of the page for the language code that you added to the Language Copy Configuration.

It's important to note that adding a language to the Language Copy Configuration will create a new language root node in the repository for that language. This can impact the structure of your content tree and may require additional configuration and customization. It's recommended to consult with experienced AEM developers or solution architects before making changes to the Language Copy Configuration or content tree structure.