agentleFS
thienqothienqo/flutter-skills/skills/flutter-localization/SKILL.md

flutter-localization

Skill16 starsChanged 2 months agoBSD-3-ClauseView on GitHub

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.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 8
  2. Very specific:

    Read pubspec.yaml, l10n.yaml, existing ARB files, generated localization access, supported locales, and formatting packages.

    line 12
  3. Distinctive:

    Use descriptive, stable message keys and document placeholders where translators need context.

    line 16
  4. Distinctive:

    Use ICU plural, select, and placeholder features instead of assembling translated sentences in code.

    line 17
  5. Distinctive:

    Avoid hardcoded user-facing strings, including errors, semantics labels, and empty states.

    line 19
  6. Distinctive:

    Do not infer language from country or persist a locale override the user did not choose.

    line 22
  7. Distinctive:

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

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.