Reputation: 193
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!
Upvotes: 2
Views: 638
Reputation: 49
i18n supports only strings I believe, so you can't assing it an object like you are trying to.
Upvotes: 1