
Flutter Setup Localization
Skip the manual wiring when you start a new Flutter app that needs translations. This skill runs the `flutter_localizations` and `intl` setup in one pass: it adds both packages, flips `generate: true` in `pubspec.yaml`, and drops in an `l10n.yaml` pointing at `lib/l10n` with `app_en.arb` as the template. It also walks through registering the delegates and supported locales on `MaterialApp`. The source covers the full loop, including ARB placeholders, plurals, and select statements, so you're not stuck after the first string. My take: the `synthetic-package: true` default is worth a second look if you prefer generated code visible in your repo, since the import path changes with that flag.
- skills.sh installs
- 38.7K
- GitHub stars
- 3.2K
- last updated
- Oct 26, 2026
Install
$ npx -y skills add flutter/agent-plugins --skill flutter-setup-localization --agent claude-codeInstalls into .claude/skills of the current project.
Files
Internationalizing Flutter Applications
Contents
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:
- Task Progress
- 1. Add dependencies to
pubspec.yaml. - 2. Enable the
generateflag. - 3. Create the
l10n.yamlconfiguration file. - 4. Configure
MaterialApporCupertinoApp.
- 1. Add dependencies to
1. Add Dependencies
Add the required localization packages to the project. Execute the following commands in the terminal:
flutter pub add flutter_localizations --sdk=flutter
flutter pub add intl:any
Sponsors
Details
- Repository
- github.com/flutter/agent-plugins
- Categories
- AI & Agent Building, Mobile Development
- First seen
- Oct 26, 2026
More from flutter/agent-plugins
All 10- Flutter Use Http Package37.9K
- Flutter Apply Architecture Best Practices45.5K
- Flutter Build Responsive Layout45.1K
- Flutter Fix Layout Issues42.2K
- Flutter Add Widget Test41.4K
- Flutter Add Integration Test40.2K
- Flutter Setup Declarative Routing39.7K
- Flutter Implement Json Serialization39.4K
- Flutter Add Widget Preview38.7K