Expandir la barra de logros de la comunidad.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
RESUELTAS

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.

 

Temas

Los temas ayudan a categorizar el contenido de la comunidad e incrementan la posibilidad de encontrar contenido relevante.

1 solución aceptada

Avatar

Respuesta correcta de
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

Ver la solución en mensaje original publicado

2 Respuestas

Avatar

Respuesta correcta de
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