Expand my Community achievements bar.

SOLVED

How to create json ui labels that can be authored and exported to Angular in SPA AEM 6.5

Avatar

Level 1

Hi,

I am currently using I18n feature to store the json under /apps and served the file using /libs/cq/i18n/dict.en.json

The json contains key values of error messages required in the field validations and api validation messages in the form.

Issues found in my I18n approach:

  • Since the messages are controlled by the developers we need deployment for every change in the json. Can we make it author friendly so that deployments can be avoided.
  • When we have two projects containing dict.en.json under its respective /apps folder the url /libs/cq/i18n/dict.en.json contains one of the projects values when accessed until we delete one of the file the other file is not used.

 

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@saddrab8102822  

 

To the first point in the issue, below are the possible options to solve it

1. Create a custom AEM page which can update the i18N node directly into the i18N location
2. Maintain the i18N as a excel sheet in DAM location and its easy for authors to update the csv or xlxs sheet and update in DAM location

For second point in the issues mentioned,
You can maintain the .en.json file and read it from a location

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

@saddrab8102822  

 

To the first point in the issue, below are the possible options to solve it

1. Create a custom AEM page which can update the i18N node directly into the i18N location
2. Maintain the i18N as a excel sheet in DAM location and its easy for authors to update the csv or xlxs sheet and update in DAM location

For second point in the issues mentioned,
You can maintain the .en.json file and read it from a location

Avatar

Administrator

@saddrab8102822 Did you find the suggestion from @Jagadeesh_Prakash helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni