utsavsavani08/rain-skill-main/flutter-setup-localization
Claude Code and agent skill by utsavsavani08/rain-skill-main
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Flutter localization and internationalization (i18n/l10n) expert. Load for any Flutter localization work — ARB files, flutter_localizations, intl package, plurals, placeholders, language switching, and locale configuration. Triggers on: localization, localizations, intl, arb, flutter_localizations, l10n, i18n, AppLocalizations, translate, multi-language.
Install
npx vskill@latest install utsavsavani08/rain-skill-main/flutter-setup-localizationSKILL.md
The same SKILL.md was published earlier as utsavsavani08/rain-skill-main/flutter-setup-localization.
Flutter Localization — i18n & l10n Setup
Full internationalization support usingflutter_localizations,intl, and ARB-based code generation.
Mandatory checkpoint (before any localization work)
Setup workflow
Step 1 — Add dependencies
Step 2 — Create l10n.yaml at project root
Step 3 — Create ARB template file
lib/l10n/app_en.arb:
Step 4 — Configure MaterialApp
Step 5 — Use in widgets
Adding a new language
- Create
lib/l10n/app_<locale>.arb(e.g.,app_es.arb) - Translate all keys — do not include
@-prefixed metadata keys - Add
Locale('es')tosupportedLocales - Run
flutter gen-l10norflutter pub getto regenerate
Advanced patterns
Runtime locale switching
Locale-aware date/number formatting
Gender/select strings
File structure
Common errors and fixes
| Error | Cause | Fix | |
|---|---|---|---|
AppLocalizations not found | generate: true missing | Add to pubspec.yaml under flutter: | |
Null check on null from .of(context)! | delegate not registered | Add AppLocalizations.delegate to localizationsDelegates | |
| Missing translation key | ARB files out of sync | Add the key to all ARB files | |
flutter gen-l10n fails | Malformed ARB JSON | Validate JSON syntax in ARB files | |
| Locale not switching | locale: not wired to state | Bind MaterialApp.locale to state notifier |
Hard rules
- Never hardcode user-facing strings — every string goes in ARB.
- `app_en.arb` is the template — all other ARBs must have the same keys.
- Never edit generated files under
flutter_gen/— regenerate instead. - Always provide `@metadata` for strings with placeholders/plurals.
- Use `Locale('en')` not `Locale('en', 'US')` unless country-specific variants are required.
- Run `flutter analyze` after generating to catch missing keys.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.rain-skill/skills/flutter-setup-localization/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/utsavsavani08/rain-skill-main/flutter-setup-localization)