i18n key sightly issue | Community
Skip to main content
Level 3
February 23, 2018
Solved

i18n key sightly issue

  • February 23, 2018
  • 6 replies
  • 8921 views

I am using i18n, however it prints only key name not the value

here is my tag

<meta data-sly-test="${'ll_meta_test_content' @ i18n}" name="ll_meta_test_content" content="${'ll_meta_test_content' @ i18n , locale=request.locale}" />

here is my i18n node with value

Some test content

In the generated html I see meta tag as

<meta name="ll_meta_test_content" content="ll_meta_test_content"/>

It doesn't print key name instead of key value

My Site is set to English in Site Properties

My key node

My en node has jcr:language and jcr:mixinTypes defined

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 shajiahmed

It worked after I restart AEM Instance.

Seems there is an issue with AEM 6.2 or lower

[SLING-4814] i18n translations not working unless server is restarted - ASF JIRA

6 replies

Radha_Krishna_N
Level 3
February 24, 2018

What is the value of the property jcr:language on your site? Is it en or en_us?

Thanks,

~RK

Level 3
February 24, 2018

it is en

i Have already uploaded screenshot for this node as well

Tekno
March 5, 2020
@shajiahmed Given code that you can use for text field ${properties.name @ i18n}
Level 3
February 26, 2018

Try this..

<meta data-sly-test="${'ll_meta_test_content' @ i18n}" name="${'ll_meta_test_content' @ i18n}" content="${'ll_meta_test_content' @ i18n}" locale="${request.locale}"/>

/Teja

Level 3
February 26, 2018

@Tej G

It didn't work

smacdonald2008
Level 10
February 26, 2018

I believe there are similiar examples in the spec here - - htl-spec/SPECIFICATION.md at master · Adobe-Marketing-Cloud/htl-spec · GitHub

shajiahmedAuthorAccepted solution
Level 3
February 26, 2018

It worked after I restart AEM Instance.

Seems there is an issue with AEM 6.2 or lower

[SLING-4814] i18n translations not working unless server is restarted - ASF JIRA