Access i18n values from javascript | AEM 6 | Community
Skip to main content
Radha_Krishna_N
Level 3
October 16, 2015
Solved

Access i18n values from javascript | AEM 6

  • October 16, 2015
  • 2 replies
  • 1368 views

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. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mshaji

Pls refer following article

http://hootcook.blogspot.com/2013/02/cq5-internationalization.html?m=1

2 replies

MshajiCommunity AdvisorAccepted solution
Community Advisor
October 16, 2015
Radha_Krishna_N
Level 3
October 16, 2015

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