I cannot modify i18n in /apps as i am using for translation, Where can i place i18n apart from apps and please explain me the steps
I tried placing i18n in /content/cq:i18n/en/test/submit where en and test is of sling:folder, submit is of type sling:messageEntry and it has sling:message property as submit, its not recognizing the i18n , please help me out
Solved! Go to Solution.
Views
Replies
Total Likes
Can you try to restart i18n bundle or restart AEM/Felix console?
https://sourcedcode.com/blog/aem/aem-i18n-not-showing-translations
Views
Replies
Total Likes
Hi @Shwetha1994
I think it should work, I can see that 'Apache Sling I18N Resource Bundle Provider' config has /content/cq:i18n in include path
Please check https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/can-we-move-i18n-file-from...
Views
Replies
Total Likes
I tried the same link /content/cq:i18n/test/en.json
en.json has
{
"hello" : "Test Hello"
}
<div>Test : ${'hello' @ i18n}</div>
Views
Replies
Total Likes
It always defaults to hello on the page
Views
Replies
Total Likes
Views
Replies
Total Likes
en.json
Views
Replies
Total Likes
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:mix="http://www.jcp.org/jcr/mix/1.0"
jcr:language="en"
jcr:mixinTypes="[mix:language]"
jcr:primaryType="nt:file">
<jcr:content
jcr:lastModifiedBy="Administrator"
jcr:primaryType="nt:resource"/>
</jcr:root>
Views
Replies
Total Likes
Hi @Shwetha1994
do you have other language translation where you can check?
Example, can you create a fr.json with
Views
Replies
Total Likes
tried same didnt worked
en page
fr page
Views
Replies
Total Likes
Can you try to restart i18n bundle or restart AEM/Felix console?
https://sourcedcode.com/blog/aem/aem-i18n-not-showing-translations
Views
Replies
Total Likes
After restarting instance it worked. Thanks
Views
Replies
Total Likes
I am updating i18n instead of cq:i18n after restart of instance its not picking updated value, do we need to keep cq:i18n only?
Views
Replies
Total Likes
Hi @Shwetha1994
You need to include the new paths at Apache Sling I18N Resource Bundle Provider osgi config to pick i18n transitions.
/content/i18n is not included ootb
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies