Mobile 2,781 installs

Internationalizing Flutter Applications

by flutter/skills

Add `flutter_localizations` and `intl` dependencies, enable "generate true" in `pubspec.yaml`, and create an `l10n.yaml` configuration file. Use when…

Skill content

Internationalizing Flutter Applications

Contents

- Core Concepts

- Setup Workflow

- Implementation Workflow

- Advanced Formatting

- Examples

Core Concepts

Flutter handles internationalization (i18n) and localization (l10n) via the flutter_localizations and intl packages. The standard approach uses App Resource Bundle (.arb) files to define localized strings, which are then compiled into a generated AppLocalizations class for type-safe access within the widget tree.

Setup Workflow

Copy and track this checklist when initializing internationalization in a Flutter project: