Migrate from Flutter gen_l10n¶
Use this flow if the project currently uses Flutter's generated AppLocalizations APIs.
Phase 1: convert ARB assets¶
From the project root:
Or point to a specific l10n.yaml:
Phase 1 requires a real l10n.yaml.
Phase 2: migrate Dart callsites¶
Dry run:
Apply changes:
Update tests too:
What gets rewritten¶
AppLocalizations.of(context)!.title- parameterized
AppLocalizationsmethod calls - deterministic plural and placeholder-based lookups
Follow-up¶
After migration:
Detailed guide¶
For the longer guide, see the repo migration doc.