I'm using AEM6.0 with SP3.
/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
so do I understand you correct?
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"?
We faced the similar requirement to fetch I18n values at client side using Granite.i18n Library
This is what I did.
1) Created a custom servlet which returns JSON response similar to ResourceBundleExportServlet
2) Loaded the bundle using basename and locale parameter - ResourceBundle resourceBundle = req.getResourceBundle(basename, pageLocale);
3) Added 'sling:basename="basename_constant"' in language specific i18n xml file which resides in /apps/project-name/i18n folder. In my case, I am setting the value of locale itself ex: "zh_cn"
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?
>>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?
AEM6.0 + SP3
Can you provide the exact version of the bundle "org.apache.sling.i18n"?