如何在<a> tag with angular?

时间:2018-09-13 09:35:42

标签: angular internationalization

I have the following html code:

<a class="nav-link" href="account" i18n>
    <i class="fa fa-user-cog" aria-hidden="true"></i> ACCOUNT
</a> 

ACCOUNT is a variable that it translated using i18n functionality of angular 6. In my case, it is never translated. If I just set it in a it is translated.

Can someone tell me what I made wrong?

Kind Regards

0 个答案:

没有答案