Accessing i18n entries using angular JS. | Community
Skip to main content
vasimakram
Level 4
January 10, 2017
Solved

Accessing i18n entries using angular JS.

  • January 10, 2017
  • 4 replies
  • 1114 views

I have a login form. When I enter wrong credentials an error message pop's up which is coming from angular JS statically. How to access i18n entries for displaying error messages in different languages based on locale of the page using angular JS.

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 edubey

I don't think you can directly access those nodes values from frontend as they would be present inside /apps.

May be if you don't have many languages, you can expose this message in multiple languages via servlet. Which can be used to get the language specific message. 

Have you written custom authentication handler?

4 replies

smacdonald2008
Level 10
January 10, 2017

To learn more about secure AEM web sites - see this Ask the Commuity experts session and sample Github code: 

https://helpx.adobe.com/experience-manager/using/secure_sites.html

Both the webinar and GitHub code can be found linked from the article. Justin talks about all the concepts you need to know. 

smacdonald2008
Level 10
January 10, 2017

Also - just confirmed  -- you’d use the OOTB QB i18n JS APis 

kautuk_sahni
Community Manager
Community Manager
January 11, 2017

I have asked asked internal expert to have a look at this.

~kautuk

Kautuk Sahni
edubey
edubeyAccepted solution
Level 10
January 11, 2017

I don't think you can directly access those nodes values from frontend as they would be present inside /apps.

May be if you don't have many languages, you can expose this message in multiple languages via servlet. Which can be used to get the language specific message. 

Have you written custom authentication handler?