Localizing Flutter projects

Translate the Application Resource Bundle (.arb) files of a Flutter app.

1. Set up Flutter localization

Follow Flutter’s internationalization guide: enable generate: true, add l10n.yaml and keep your strings in a template file such as lib/l10n/app_en.arb.

2. Create an Auto Localize project

  1. Click New Project and drop the Flutter project folder.
  2. Set Written in to the language of the template file and choose the languages.
  3. Click Create Project.

3. Localize

Click Localize. New files are created next to the template, named app_de.arb, app_pt_BR.arb …, with the same key order. ICU placeholders such as {count} and plural/select messages are protected, and @ metadata (descriptions, placeholder types) is used as context for the translation.

4. Generate and run

Run flutter gen-l10n (or just build) and add the new locales to supportedLocales if you list them yourself.

More from MOZKAN

7 more apps, same care

Private, native apps for iPhone, iPad and Mac from the developer of Auto Localize.

DiskloftMac

See your disk as a floor plan and clear caches, Xcode leftovers and duplicate files. Nothing leaves your Mac.

See everything at mozkan.com