Angular · Senior · Question 45 of 75
What is the main trade-off of Angular's built-in i18n (@angular/localize)?
- ✓Correct answer: Translations are compiled in, giving fast runtime, but each locale is a separate build and switching usually reloads the page
- 2It only supports English and French
- 3It translates text at runtime using machine translation
Explanation
You mark text with i18n attributes and $localize, extract messages and build per locale. Runtime libraries like Transloco allow switching languages without a reload at some runtime cost.