i18n key sightly issue | Community
Skip to main content
Level 3
Feb 23, 2018 11:43 PM UTC
Solved

i18n key sightly issue

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.
shajiahmedAccepted solution
Level 3
Feb 26, 2018 3:31 PM UTC

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

7 replies

shajiahmedAuthorAccepted solution
Level 3
Feb 26, 2018 3:31 PM UTC

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

Translate
smacdonald2008
Level 10
Feb 26, 2018 2:59 PM UTC

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

Translate
Level 3
Feb 26, 2018 2:55 PM UTC

@Tej G

It didn't work

Translate
Level 3
Feb 26, 2018 5:27 AM UTC

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

Translate
Level 3
Feb 24, 2018 11:08 AM UTC

it is en

i Have already uploaded screenshot for this node as well

Translate
Tekno
New Participant
Mar 5, 2020 6:37 AM UTC
@shajiahmed Given code that you can use for text field ${properties.name @ i18n}
Translate
Radha_Krishna_N
Level 3
Feb 24, 2018 4:12 AM UTC

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

Thanks,

~RK

Translate