Bird
0
0

If you run ng build --localize with Angular i18n configured for French and Spanish, what happens?

medium📝 Predict Output Q5 of 15
Angular - Internationalization and Accessibility
If you run ng build --localize with Angular i18n configured for French and Spanish, what happens?
ABuilds only the default locale app without translations
BBuilds a single app with all translations embedded
CThrows an error because --localize is invalid
DBuilds separate app versions for French and Spanish locales
Step-by-Step Solution
Solution:
  1. Step 1: Understand the --localize flag in Angular build

    The --localize flag triggers building multiple versions for each configured locale.
  2. Step 2: Match behavior with options

    Builds separate app versions for French and Spanish locales correctly describes separate builds per locale; others are incorrect.
  3. Final Answer:

    Builds separate app versions for French and Spanish locales -> Option D
  4. Quick Check:

    ng build --localize creates locale-specific builds = Builds separate app versions for French and Spanish locales [OK]
Quick Trick: Use --localize to build apps for each language [OK]
Common Mistakes:
  • Thinking it builds only default locale
  • Assuming single app with all languages
  • Believing --localize is invalid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes