Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
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.