How to use the i18n | Community
Skip to main content
Tekno
March 3, 2020
Solved

How to use the i18n

  • March 3, 2020
  • 2 replies
  • 7562 views

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.
Best answer by BrianKasingli

@tekno,

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

2 replies

arunpatidar
Community Advisor
Community Advisor
March 3, 2020

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.

Arun Patidar
Tekno
TeknoAuthor
March 5, 2020

@1464355, Can you please given me full example of i18n in rich Text, so that i can implement because i have tried everything for rich text but the convertion from english to other language is not worked for me.

BrianKasingli
Community Advisor and Adobe Champion
BrianKasingliCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
March 3, 2020

@tekno,

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

Tekno
TeknoAuthor
March 4, 2020
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'}