Bird
0
0

Why does Angular i18n use message IDs instead of raw text to identify translations internally?

hard📝 Conceptual Q10 of 15
Angular - Internationalization and Accessibility
Why does Angular i18n use message IDs instead of raw text to identify translations internally?
ATo reduce the size of translation files by using numbers only
BTo uniquely identify messages even if text changes slightly
CBecause raw text cannot be translated by browsers
DTo allow translations only for English language
Step-by-Step Solution
Solution:
  1. Step 1: Understand message ID purpose in i18n

    Message IDs uniquely identify each message so translations stay linked even if source text changes.
  2. Step 2: Evaluate options for correctness

    To uniquely identify messages even if text changes slightly correctly explains the reason; others are incorrect or irrelevant.
  3. Final Answer:

    To uniquely identify messages even if text changes slightly -> Option B
  4. Quick Check:

    Message IDs ensure unique identification = To uniquely identify messages even if text changes slightly [OK]
Quick Trick: Message IDs keep translations linked despite text edits [OK]
Common Mistakes:
  • Thinking IDs reduce file size only
  • Believing browsers translate raw text
  • Assuming IDs limit to English only

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes