Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Solution - Internationalization translation is not picking up updates from AEM dictionary

Avatar

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

190 likes

Total Posts

239 posts

Correct Reply

74 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

190 likes

Total Posts

239 posts

Correct Reply

74 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile
Ravi_Pampana
MVP

10-10-2019

In AEM 6.2/6.3/6.4 we started seeing the i18n translations changes are not reflected until we restart "org.apache.sling.i18n" bundle.

By adding below config file the translation changes will reflect without restarting the i18n bundle

File name: org.apache.sling.i18n.impl.JcrResourceBundleProvider.xml

File Content:

<?xml version="1.0" encoding="UTF-8"?>

<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"

jcr:primaryType="sling:OsgiConfig"

resource.paths="[/etc/pdc/i18n,/apps,/libs,/content]"/>

Replies

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

387 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

11-10-2019

I would recommend setting up a DEBUG logger on "org.apache.sling.i18n" and check whats getting logged when you add a new entry to the dictionary.

Also, check if all indexes are valid from jmx console.

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

11-10-2019

Hello Ravi,

There was a known issue in 6.2 and 6.3 and the issue was resolved in org.apache.sling.i18n version 2.5.10.

Check the resolution in this article:

https://helpx.adobe.com/experience-manager/kb/internationalization-translation-is-not-picking-up-upd...

Regards,

Vishu

Avatar

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Vish_dhaliwal
Employee

Likes

189 likes

Total Posts

356 posts

Correct Reply

123 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
Vish_dhaliwal
Employee

11-10-2019

If you have the 2.5.10 bundle already and still facing issue, put a trace level logging on org.apache.sling.i18n.impl.JcrResourceBundleProvider as Jaideep mentioned.

Also, set debug log on org.apache.jackrabbit.oak.jcr.observation and org.apache.sling.jcr.resource.internal.OakResourceListener to validate that observation in general works fine and picks up the dictionary changes.

Avatar

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

190 likes

Total Posts

239 posts

Correct Reply

74 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

190 likes

Total Posts

239 posts

Correct Reply

74 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile
Ravi_Pampana
MVP

11-10-2019

Thanks all for the suggestion. This is not a question and I mentioned solution which I did to fix the issue in AEM