Expand my Community achievements bar.

SOLVED

how to implement i18n AEM as cloud service

Avatar

Level 2

how to implement i18n AEM as cloud service. i need any  sample project 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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

View solution in original post

4 Replies

Avatar

Community Advisor

@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/cont...

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"

Avatar

Level 2

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 ?

Avatar

Correct answer by
Community Advisor

@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

Avatar

Level 3

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,