How to use the i18n | Community
Skip to main content
Tekno
New Participant
Mar 3, 2020 12:06 PM UTC
Solved

How to use the i18n

Hi,

                     

I am using the below code for translate the English to other language through i18n

1 > ${"{0}" @i18n, format=[properties.questionAnswer],context='html'}

2 > ${properties.questionAnswer @ i18n, context='html'}

But this is not working for me.

 

When i am using the below code it is working fine for me
 ${"Hello World" @ i18n, context='html'}

So is there any way to use the i18n for RTE (Rich Text ).

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
BrianKasingli
BrianKasingliAccepted solution
New Participant
Mar 3, 2020 3:44 PM UTC

@tekno,

You need to add the correct dictionary keys in the AEM console here: http://{SERVER}:{PORT}/libs/cq/i18n/translator.html

10 replies

BrianKasingli
BrianKasingliAccepted solution
New Participant
Mar 3, 2020 3:44 PM UTC

@tekno,

You need to add the correct dictionary keys in the AEM console here: http://{SERVER}:{PORT}/libs/cq/i18n/translator.html

Translate
Tekno
TeknoAuthor
New Participant
Mar 4, 2020 9:37 AM UTC
Hi Briankasingli, I have added that is why i am getting the translation while i am using the ${properties.name @3164305}. But this is not working for RTE(Rich Text) below code which i have used for RTE 1 > ${"{0}" @3164305, format=[properties.questionAnswer],context='html'} 2 > ${properties.questionAnswer @ i18n, context='html'}
Translate
arunpatidar
New Participant
Mar 3, 2020 2:00 PM UTC

Try with

${'{0}' @ format=[properties.questionAnswer], i18n, locale='de'}

 

Please check below for richtext translation

https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/i18n-translator.html

You have to create key with HTML.

Translate
Arun Patidar
Tekno
TeknoAuthor
New Participant
Mar 4, 2020 12:30 PM UTC
@1464355,
Translate