i18n key sightly issue

Avatar

Avatar

shajiahmed

Avatar

shajiahmed

shajiahmed

23-02-2018

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

i18nkey-val.png

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

Screen Shot 2018-02-23 at 6.41.28 PM.png

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

shajiahmed

Avatar

shajiahmed

shajiahmed

26-02-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

Answers (5)

Answers (5)

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

26-02-2018

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

Avatar

Avatar

shajiahmed

Avatar

shajiahmed

shajiahmed

26-02-2018

@Tej G

It didn't work

Avatar

Avatar

Teja_G

Avatar

Teja_G

Teja_G

25-02-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

Avatar

Avatar

shajiahmed

Avatar

shajiahmed

shajiahmed

24-02-2018

it is en

i Have already uploaded screenshot for this node as well

Avatar

Avatar

Radha_Krishna_N

Avatar

Radha_Krishna_N

Radha_Krishna_N

23-02-2018

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

Thanks,

~RK