how to directly add i18n key in my htl code | Community
Skip to main content
Adobe Employee
July 20, 2021
Solved

how to directly add i18n key in my htl code

  • July 20, 2021
  • 3 replies
  • 1417 views

Hi,

 

I need to use i18n key in my htl for a text. How can I add it?

I added "${authorprofile.followme.default @3164305,context='html'}" b/w div class its not working. How should I add it?

 

Thank you

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 BimmiSo

Hi @keerthana_h_n 

 

Please try as below.

It will work in div also.

 

<div data-sly-test.default="${'authorprofile.followme.default' @ i18n}" />

 

Let me know if still any issue.

 

Hope that helps!!

Thanks

 

 

 

3 replies

arunpatidar
Community Advisor
Community Advisor
July 20, 2021

Hi,

please find the example below :

 

<sly data-sly-test.emptyTitle="${'myproject.component.empty' @ i18n}" />

Arun Patidar
Dipti_Chauhan
Community Advisor
Community Advisor
July 21, 2021

Hi @keerthana_h_n 

 sharing one example : ${'KEY_NAME' @i18n}

 

Thanks

Dipti

BimmiSoAdobe EmployeeAccepted solution
Adobe Employee
July 21, 2021

Hi @keerthana_h_n 

 

Please try as below.

It will work in div also.

 

<div data-sly-test.default="${'authorprofile.followme.default' @ i18n}" />

 

Let me know if still any issue.

 

Hope that helps!!

Thanks