While creating i18n keys, I see that for some i18n keys the value of jcr:primaryType is nt:folder whereas for rest of them, the value of jcr:primaryType is sling:MessageEntry.
Why is this difference ? And will this have any impact ?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @SHIBANI06
If jcr:mixingType is set as sling:message then It does not matter if type is nt:folder or sling:messageEntry. In both scenario you will get correct result.
Hope this helps.
Thanks
Dipti Chauhan
Hi @SHIBANI06 ,
If you see the Apache documentation then you will find that for
language folder - example en, de, fr, etc
And for each messages (for which you want to put language specific value)
https://sling.apache.org/documentation/bundles/internationalization-support-i18n.html
Hi @Ritesh_Mittal ,
But in my case, some of the i18n keys are having this property
If you are talking about product i18n nodes, can you give the exact path?
A sling:messageEntry nodetype has the mixinType "sling:message" (which requires a node to have the properties "sling:key" and "sling:message").
And you can choose any other nodetype and add the mixinType "sling:message" to achieve the very same behavior.
Hi @SHIBANI06
If jcr:mixingType is set as sling:message then It does not matter if type is nt:folder or sling:messageEntry. In both scenario you will get correct result.
Hope this helps.
Thanks
Dipti Chauhan
Oh so it doesn't really matter. Thanks @Dipti_Chauhan .
Views
Likes
Replies