How to prevent call /libs/cq/i18n/dict.en-us.json to download I18N
Hi,
In our project, to download i18n key/messages there is call of /libs/cq/i18n/dict.en-us.json. Now I want to use /apps/cq/i18n/dict.en-us.json . How can I achieve this.
Thanks,
Hi,
In our project, to download i18n key/messages there is call of /libs/cq/i18n/dict.en-us.json. Now I want to use /apps/cq/i18n/dict.en-us.json . How can I achieve this.
Thanks,
This "/libs/cq/i18n/dict" does only determine the path to which this servlet is bound. It does not describe the location where the i18n translations are stored (although the path of the servlet and the JCR path might be identical).
Internally the translations are looked up via "request.getResourceBundle()", which is Sling code. You might want to check out the code at https://github.com/apache/sling-org-apache-sling-engine/blob/39c35bc3022dc15c8903dc41db525f161f2b9b45/src/main/java/org/apache/sling/engine/impl/SlingHttpServletRequestImpl.java#L243 and see what it is doing.
Jörg
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.