Expand my Community achievements bar.

SOLVED

i18n key sightly issue

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Level 4

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

View solution in original post

7 Replies

Avatar

Level 4

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

Thanks,

~RK

Avatar

Level 4

it is en

i Have already uploaded screenshot for this node as well

Avatar

Level 1
@shajiahmed Given code that you can use for text field ${properties.name @ i18n}

Avatar

Level 4

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

Correct answer by
Level 4

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