Hello,
I'm working with AEM6 and Sightly and have an issue with our message keys.
Until now we had some text output like
<fmt:message key="message.key.${variable}" />
Now I would like to use this format: ${'message.key' @ i18n}
I thought, I found the solution by using
${'message.key.part.{0}.another.part.{1}' @ i18n, format=[variable1, variable2]}
but the format-option only injects the values of variable1 and variable2 into the translation of the provided message key at the corresponding placeholders.
Other combinations like ${'message.key.'variable @ i18n} or ${'message.key.${variable}' @ i18n} failed.
I hope someone can provide a solution 🙂
Best regards
Matthias