flutter-localization
Standards for multi-language support using easy_localization and JSON/CSV assets.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Localization
Priority: P1 (STANDARD)
Consistent multi-language support using easy_localization.
Structure
assets/
└── translations/
├── en.json
└── vi.json
Implementation Guidelines
-
Bootstrap: Wrap root with
EasyLocalization. Always useawait EasyLocalization.ensureInitialized(). -
Format: Default to JSON. Store in
assets/translations/. -
Lookup: Use
.tr()extension on strings. -
Locale: Change via
context.setLocale(Locale('code')). -
Params: Use
{}in JSON; pass viatr(args: [...]). -
Counting: Use
plural()for quantities. -
Sheets: Sync via
sheet_loader_localizationfrom Google Sheets for Online file storage to JSON/CSV.
Anti-Patterns
- Hardcoding: No raw strings in UI; use keys.
-
Manual L10n: Avoid standard
Localizations.of; use GetX oreasy_localizationcontext methods. - Desync: Keep keys identical across all locale files.
Reference & Examples
For setup and Google Sheets automation: See references/REFERENCE.md.
Related Topics
idiomatic-flutter | widgets
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!