addUsername
addUsername

Reputation: 193

Set dynamic id to i18n attribute

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

Answers (1)

Ivayloi
Ivayloi

Reputation: 49

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

Upvotes: 1

Related Questions