How to load only part of the dictionary in AEM 6.0? | Community
Skip to main content
Level 4
Jan 13, 2016 10:30 AM UTC
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
Employee
Jan 15, 2016 8:16 PM UTC

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

joerghoh
Employee
Jan 14, 2016 8:20 PM UTC

Hi,

where in the repository have you placed your custom translations?

kind regards,
Jörg

Translate
smacdonald2008
Level 10
Jan 13, 2016 1:14 PM UTC

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