Claude Cursor Skill

flutter-localization

Implement or review Flutter localization with gen_l10n, ARB resources, plurals, locale-aware formatting, RTL layout, and locale testing. Use for multi-language UI or localization infrastructure; not for arbitrary copy editing.

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download thienqo-flutter-skills-skills_flutter-localization-af9552b.zip · 2 KB

Install

skills CLI npx skills add https://github.com/thienqo/flutter-skills/tree/main/skills/flutter-localization
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install thienqo-flutter-skills@llmmart
Git git clone https://github.com/thienqo/flutter-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole thienqo/flutter-skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Flutter Localization

Keep user-facing text in the project's localization pipeline and model meaning rather than concatenated fragments.

Inspect

Read pubspec.yaml, l10n.yaml, existing ARB files, generated localization access, supported locales, and formatting packages. Preserve the established localization tool unless migration is requested.

Rules

  • Use descriptive, stable message keys and document placeholders where translators need context.
  • Use ICU plural, select, and placeholder features instead of assembling translated sentences in code.
  • Format dates, times, numbers, currencies, and units for the active locale.
  • Avoid hardcoded user-facing strings, including errors, semantics labels, and empty states.
  • Let directional APIs and start/end alignment support RTL; mirror only assets whose meaning requires it.
  • Define a deliberate fallback and unsupported-locale policy.
  • Do not infer language from country or persist a locale override the user did not choose.

Verification

Generate localizations, analyze, and test representative locales including an RTL locale, long strings, plurals, missing resources, and locale-aware formats. Run key screens with large text because localization and layout failures often combine.

When formatting messages or localization is in scope, follow the ICU messages and formatting reference.

Sources

Files (flutter-skills)
  • references
    • icu-messages-and-formatting.md 2.2 KB
      Loading…
  • SKILL.md 1.7 KB
    ---
    name: flutter-localization
    description: Implement or review Flutter localization with gen_l10n, ARB resources, plurals, locale-aware formatting, RTL layout, and locale testing. Use for multi-language UI or localization infrastructure; not for arbitrary copy editing.
    ---
    
    # Flutter Localization
    
    Keep user-facing text in the project's localization pipeline and model meaning rather than concatenated fragments.
    
    ## Inspect
    
    Read `pubspec.yaml`, `l10n.yaml`, existing ARB files, generated localization access, supported locales, and formatting packages. Preserve the established localization tool unless migration is requested.
    
    ## Rules
    
    - Use descriptive, stable message keys and document placeholders where translators need context.
    - Use ICU plural, select, and placeholder features instead of assembling translated sentences in code.
    - Format dates, times, numbers, currencies, and units for the active locale.
    - Avoid hardcoded user-facing strings, including errors, semantics labels, and empty states.
    - Let directional APIs and start/end alignment support RTL; mirror only assets whose meaning requires it.
    - Define a deliberate fallback and unsupported-locale policy.
    - Do not infer language from country or persist a locale override the user did not choose.
    
    ## Verification
    
    Generate localizations, analyze, and test representative locales including an RTL locale, long strings, plurals, missing resources, and locale-aware formats. Run key screens with large text because localization and layout failures often combine.
    
    When formatting messages or localization is in scope, follow the [ICU messages and formatting reference](references/icu-messages-and-formatting.md).
    
    ## Sources
    
    - [Internationalizing Flutter apps](https://docs.flutter.dev/ui/internationalization)
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.