Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Access i18n values from javascript | AEM 6

Avatar

Level 4

Hi,

I have project specific i18N values under /apps/<project>/i18n.

in the html I am able to access it using the syntax ${'i18nKey' @ i18n}

but I am stuck on how to get it in JavaScript. 

1 Accepted Solution

Avatar

Correct answer by
Level 9
2 Replies

Avatar

Correct answer by
Level 9

Avatar

Level 4

CQ.I18n.get('i18nKey') is returning i18nKey instead of the value.