Skip to main content
Level 4
January 13, 2016
Solved

How to load only part of the dictionary in AEM 6.0?

Hello,

I'm using AEM6.0 with SP3.

In javascript we are loading part of the transation with CQ.I18n.getMessage method.

/libs/cq/i18n/dict.en_us.json returns only custom translation, but /libs/cq/i18n/dict.de_de.json in additional to our custom translation returns also AEM OOTB translations.

How I can prevent this for publish instance?

Thank you in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
January 15, 2016

Hi,

so do I understand you correct?

  • When you hit /libs/cq/i18n/dict.en_us.json with your browser, you get only the custom translations (= the translations you provided)
  • When you hit /libs/cq/i18n/dict.de_de.json with your browser, you get the custom translations plus the ootb german translations

Is this correct? And you have put your custom translations below /apps/my-project/i18.

Which version of AEM do you have? Can you provide the exact version of the bundle "org.apache.sling.i18n"?

kind regards,
Jörg

13 replies

smacdonald2008
Level 10
January 13, 2016

The only info that I could find related to this question is located here:

https://docs.adobe.com/docs/en/aem/6-0/develop/components/i18n/translator.html

Translate
joerghoh
Adobe Employee
Adobe Employee
January 14, 2016

Hi,

where in the repository have you placed your custom translations?

kind regards,
Jörg

Translate
Level 4
January 15, 2016

Hi Jörg,

/apps/my-project/i18n

Thanks,

Alex

Translate
joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
January 15, 2016

Hi,

so do I understand you correct?

  • When you hit /libs/cq/i18n/dict.en_us.json with your browser, you get only the custom translations (= the translations you provided)
  • When you hit /libs/cq/i18n/dict.de_de.json with your browser, you get the custom translations plus the ootb german translations

Is this correct? And you have put your custom translations below /apps/my-project/i18.

Which version of AEM do you have? Can you provide the exact version of the bundle "org.apache.sling.i18n"?

kind regards,
Jörg

Translate
Level 2
May 7, 2020
Hi Jörg, I still that happening in AEM 6.4 and 6.5. We do have our custom translations. Right now there are three languages: en, es and zh. /libs/cq/i18n/dict.es.json returns OOTB values, how to prevent this? zh and en works as expected.
Translate
Level 4
January 18, 2016

Hi,

>>When you hit /libs/cq/i18n/dict.en_us.json with your browser, you get only the custom translations (= the translations you provided)

>>When you hit /libs/cq/i18n/dict.de_de.json with your browser, you get the custom translations plus the ootb german translations

>>Is this correct? And you have put your custom translations below /apps/my-project/i18.

Correct.

>>Which version of AEM do you have?

AEM6.0 + SP3

Can you provide the exact version of the bundle "org.apache.sling.i18n"?

2.2.8

Thanks,

Alex

Translate
Level 4
March 2, 2016

Any updates?

Translate
mohanr80993572
Level 2
August 31, 2016

Hi Alex, could you find any solution for this? Even we are facing same issue.

Thanks,

Mohan

Translate
Level 4
August 31, 2016

Hello,

We deactivated OOTB dictionaries from publish instance.

Thanks,

Alex

Translate
mohanr80993572
Level 2
August 31, 2016

Thanks Alex, for the info. Did you deactivate dictionaries at /libs/wcm/core/i18n in publish instance or using Guide Localization Service or overlayed  /libs/wcm/core/i18n with your custom or blank dictionaries?

- Mohan

Translate
Level 4
September 1, 2016

We just deactivated /libs/wcm/core/i18n from publish instance

-Alex

Translate