0 votes
in Angular by
How can I translate attribute?

1 Answer

0 votes
by

You can translate attributes by attaching i18n-x attribute where x is the name of the attribute to translate. For example, you can translate image title attribute as below,

<img [src]="example" i18n-title title="Internationlization" />

By the way, you can also assign meaning, description and id with the i18n-x="|@@" syntax.

...