InterviewHubPRO
Section Overview
Q184

Question 184 of 283

Part 8: Internationalization (i18n), Testing & DOM Directives (177 - 212)

65%
Angular & Signals (283 Qs)•Part 8: Internationalization (i18n), Testing & DOM Directives (177 - 212)

How can I translate attribute?

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,

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

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