Expand my Community achievements bar.

SOLVED

How to access project specific i18n folder in Publisher/Dispatcher instance?

Avatar

Community Advisor

Hi,

 

Suppose if i have project specific i18n folder like below

 

/apps/<<project-name>>/i18n/fr.json

 

I need an access to this folder in Publisher instance so that i can give all the 1i8n keys and values as a json. This json url has to be given to some other channel so that they can make use of keys and values. Please let me know how to do it.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Kishore_Kumar_,

You can achieve this by exporting the AEM dictionary values from a servlet. You can find this useful tutorial here, https://sourcedcode.com/blog/aem/how-to-get-aem-i18n-dictionary-in-json-format, where it will provide you a step by step guide on How to Get AEM i18n Dictionary in the JSON Format.

 

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

@Kishore_Kumar_,

You can achieve this by exporting the AEM dictionary values from a servlet. You can find this useful tutorial here, https://sourcedcode.com/blog/aem/how-to-get-aem-i18n-dictionary-in-json-format, where it will provide you a step by step guide on How to Get AEM i18n Dictionary in the JSON Format.

 

Avatar

Community Advisor
But it is mentioned as in published i8n folder should be in etc folder. Is there any way we can avoid this

Avatar

Community Advisor
To get JSON from the i18n dictionary, this may be the cleanest way.

Avatar

Community Advisor
Another way is by exposing the dictionary key within the HTML markup. Use your Sling Model to expose dictionary key/values, so it can be consumed by your JavaScript via data-attributes