Issue
I have this code below
<disclaimer
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/heading"
level="3"
text="Convert to i18n"/>
I am having this in dialog box and I want to convert the text part to i18n. I know how to convert in html like :
<a href="#" title="" data-sly-text="${'Convert to i18n' @ i18n}">もっと見る</a>
FYI:
I have an i18n json file with the corresponding value.
I cant seem to make it work in dialog.
Is this possible? Suggestions are much appreciated.
Update:
I found this
But I cant understand if this will solve my issue on how to automatically put i18n conversion on dialog text heading
Solution
In Sightly when you use i18n the locale is derived from the page, but in case of Dialogs and Authoring UI the locale is derived from the selected UI language for the current author, just change the language in user properties.
Answered By - Andrey Shilov