I am trying to combine two strings and apply i18n on combined string.
${['i18nPrefix','Register'] @join='-', i18n}
Above piece of code not working and I tried combination of format, i18n etc.
I need to prepend a prefix based on site user visiting to the authored dialog property and get i18n translation.
There are scenarios where a default key need to be appended to prefix. The following has been tried and not working.
<sly data-sly-test.altKey="${'{0}-{1}' @ format=['i18nPrefix', properties.alt ? properties.alt : 'default' ]}" />
Use case : <img alt="prefixedtranslation">, <div aria-label="prefixedtranslation">text</div>, <label>prefixedtranslation</label>
Any help appreciated.
Thanks.