flutter-localization | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / flutter-localization

flutter-localization

maintained by HoangNguyen0403

star 143 account_tree 48 verified_user MIT License
bolt View GitHub

name: Flutter Localization description: Standards for multi-language support using easy_localization and JSON/CSV assets. metadata: labels: [localization, l10n, i18n, easy_localization] triggers: files: ['**/assets/translations/*.json', 'main.dart'] keywords: [localization, multi-language, translation, tr(), easy_localization]

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

chat Comments (0)

chat_bubble_outline

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

Skill Details

GitHub Stars 143
GitHub Forks 48
Created Jan 2026
Last Updated 8 months ago
tools tools documents

Related Skills

humanizer
chevron_right
zlibrary-to-notebooklm
chevron_right
bm-md
chevron_right
annas-to-notebooklm
chevron_right
markdown-exporter
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.