Angular - Internationalization and AccessibilityWhy does Angular i18n use message IDs instead of raw text to identify translations internally?ATo reduce the size of translation files by using numbers onlyBTo uniquely identify messages even if text changes slightlyCBecause raw text cannot be translated by browsersDTo allow translations only for English languageCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand message ID purpose in i18nMessage IDs uniquely identify each message so translations stay linked even if source text changes.Step 2: Evaluate options for correctnessTo uniquely identify messages even if text changes slightly correctly explains the reason; others are incorrect or irrelevant.Final Answer:To uniquely identify messages even if text changes slightly -> Option BQuick 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 onlyBelieving browsers translate raw textAssuming IDs limit to English only
Master "Internationalization and Accessibility" in Angular9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallPerf
More Angular Quizzes Advanced Patterns - Dynamic component loading - Quiz 10hard Angular Signals - Computed signals for derived values - Quiz 9hard Animations - Trigger and state definitions - Quiz 4medium Animations - Route transition animations - Quiz 15hard Internationalization and Accessibility - Locale switching - Quiz 2easy Performance Optimization - Preloading strategies - Quiz 11easy Performance Optimization - TrackBy in ngFor - Quiz 3easy Standalone Components - Standalone pipes and directives - Quiz 6medium State Management - Why state management matters - Quiz 13medium Testing - Testing forms and user interactions - Quiz 1easy