Search

PythonReactSEOPDF
GitHub Skill

flutter-localization

Standards for multi-language support using easy_localization and JSON/CSV assets.

HoangNguyen0403☆ 143 Repository stars48 Repository forks

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

View source ↗Guides

Skill 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 use await 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 via tr(args: [...]).
  • Counting: Use plural() for quantities.
  • Sheets: Sync via sheet_loader_localization from 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 or easy_localization context 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)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!