September 2017
Intermediate to advanced
450 pages
11h 24m
English
The i18n attribute is a translation attribute provided by Angular's core library. It denotes a string as being available for extraction when running the Angular-CLI xi18n command. We can provide context to our exported attributes by adding meaning and description fields to the attribute:
i18n="<meaning>|<description>"
Both are optional values, with description being the default one if only one value is provided. The best way to think about the differences in these values is that meaning is the literal definition of what the translated word or phrase is attempting to communicate, whereas description relates to the context of what its function is in the application. An example would be whether it is a link in the main navigation, ...
Read now
Unlock full access