how to implement i18n AEM as cloud service | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Shashi_Mulugu

@gmahendra As i said earlier, you cant add keys from AEM UI at page level, it has to be add from code base and get deployed. On your question on how to update your html code, you can follow this specification on how to write your sigtly code.
https://github.com/adobe/htl-spec/blob/1.4/SPECIFICATION.md#123-i18n

2 replies

Shashi_Mulugu
Community Advisor
Community Advisor
August 2, 2023

@gmahendra you can create a sample project from AEM archetype and use sample i18n file already give as part of Archetype project to play with i18n. Just a callout that with AEM cloud editing/managing of i18n keys within AEM is not allowed as it fall under immutable files section, it has to be always part of codebase and deployement pipeline.
https://github.com/adobe/aem-project-archetype/tree/develop


https://github.com/adobe/aem-project-archetype/tree/develop/src/main/archetype/ui.apps/src/main/content/jcr_root/apps/__appId__/i18n

Command to create a test project:-
mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate \
-D archetypeGroupId=com.adobe.aem \
-D archetypeArtifactId=aem-project-archetype \
-D archetypeVersion=43\
-D appTitle="My Site" \
-D appId="mysite" \
-D groupId="com.mysite"

gmahendraAuthor
Level 2
August 2, 2023

i have page like test/en_US/testpage
test/i18n/en_US/ which node stretcher we  need to fallow and how to add  key  and value?

 

 

and html how to add call i18n ?

Shashi_Mulugu
Community Advisor
Shashi_MuluguCommunity AdvisorAccepted solution
Community Advisor
August 2, 2023

@gmahendra As i said earlier, you cant add keys from AEM UI at page level, it has to be add from code base and get deployed. On your question on how to update your html code, you can follow this specification on how to write your sigtly code.
https://github.com/adobe/htl-spec/blob/1.4/SPECIFICATION.md#123-i18n

Sid_Gour
Level 3
August 2, 2023

Hi @gmahendra ,

I think you can download the content/source code packages from WKND sites and play around it.

This sample site has i18n dictionary for wknd under the path  \ui.apps\src\main\content\jcr_root\apps\wknd\i18n\fr

 

Thanks,