Set dynamic id to i18n attribute

Viewed 177

what i want to achive is that the value of that i18n attribute be equals to "@@menu.itemName", right now it takes all as a string "@@menu.{{item.name}}". Im not sure why it don't parse the js code

<div i18n="@@menu.{{item.name}}">{{item.name}}
<trans-unit id="menu.itemName">
...
</trans-unit>

thanks!

1 Answers

i18n supports only strings I believe, so you can't assing it an object like you are trying to.

Related