1. Task It Solves & Why It Matters
Internationalizing Flutter apps using flutter gen-l10n requires strict adherence to the Application Resource Bundle (.arb) JSON specification. Common errors — such as missing mandatory other fallback branches on ICU plurals, misspelled placeholder parameters, or mismatched variables between base and translated bundles — break code generation builds and cause runtime crashes.
This tool parses base reference bundles (app_en.arb) and target translations (app_es.arb, app_ar.arb), verifies placeholder variable parity, validates ICU syntax, tests RTL text directionality with live CanvasKit widgets, and non-destructively synthesizes repaired bundles.