flutter-localizing-apps
Installation
Summary
Multi-language support for Flutter apps using ARB files and code generation.
- Configure
pubspec.yamlwithflutter_localizationsandintl, then define anl10n.yamlfile to enable thegen-l10ncode generator - Store localized strings in Application Resource Bundle (
.arb) JSON files; the template file defines all keys, and locale-specific files provide translations - Integrate localizations into
MaterialApporCupertinoAppby addingAppLocalizations.delegateand platform-specific delegates tolocalizationsDelegates, then access strings viaAppLocalizations.of(context) - Support dynamic content with placeholders, plurals, selects, and formatted dates/numbers using ICU message syntax in ARB metadata
- iOS requires additional bundle configuration in Xcode to register supported languages with the App Store
SKILL.md
Localizing Flutter Applications
Contents
- Core Configuration
- Defining ARB Resources
- App Integration
- Advanced Formatting
- Workflows
- Troubleshooting & Gotchas
Core Configuration
Configure the project to support code generation for localizations.