0
0
Angularframework~5 mins

Angular i18n built-in support - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Angular i18n built-in support?
Angular i18n built-in support is a feature that helps developers create applications that can display content in different languages by using Angular's tools and syntax for translation.
Click to reveal answer
beginner
How do you mark text for translation in Angular templates?
You mark text for translation by adding the i18n attribute to HTML elements or Angular components in your template.
Click to reveal answer
intermediate
What command extracts translation messages from Angular templates?
The command ng extract-i18n extracts all marked messages into a translation source file, usually in XLIFF format.
Click to reveal answer
intermediate
How does Angular handle multiple languages at build time?
Angular uses different build configurations to generate separate versions of the app for each language by replacing the translation files during the build process.
Click to reveal answer
advanced
What is the role of the i18n-select and i18n-plural directives?
i18n-select chooses text based on a variable's value, and i18n-plural handles plural forms in translations, helping to show correct messages depending on numbers or conditions.
Click to reveal answer
Which attribute do you add to an HTML element to mark it for translation in Angular?
Atranslate
Bi18n
Cng-translate
Dlocalize
What file format does Angular commonly use for translation source files?
AXLIFF
BYAML
CJSON
DCSV
Which Angular CLI command extracts translation messages from your app?
Ang extract-i18n
Bng serve
Cng generate i18n
Dng build
How does Angular apply different languages in the app?
AUsing CSS classes
BAt runtime by switching files
CBy generating separate builds per language
DBy changing the HTML tag
What does the i18n-plural directive help with?
ATranslating images
BChanging font size
CSwitching themes
DHandling plural forms in translations
Explain how Angular's built-in i18n support helps create multilingual apps.
Think about how you prepare text for translation and how Angular uses those translations.
You got /4 concepts.
    Describe the purpose of the i18n-select and i18n-plural directives in Angular.
    Consider how messages change depending on conditions or numbers.
    You got /4 concepts.