Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
SOLVED

i18n key sightly issue

Avatar

Level 3

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 3

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 3

it is en

i Have already uploaded screenshot for this node as well

Avatar

Level 2

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 3

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