agentleFS
vmobifystudiovmobifystudio/app-dev-team/skills/localisation/SKILL.md

localisation

Skill4 starsChanged 4 months agoMITView on GitHub

Use when the product ships in more than one locale, or when a string, date, number, currency or layout could differ by region — by ux-architect when the locale set changes navigation, by privacy-reviewer when region determines obligation, and by any IC writing a user-visible string. Triggers on the first string, not on the first translation.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Every user-visible string is a key in the catalogue: No string literal in a view, ever.

    line 16
  2. Distinctive:

    Never sort or compare user-facing text with byte comparison: Use the locale-aware collator.

    line 24
  3. Distinctive:

    RTL is a layout mode, not a translation: Use leading/trailing, never left/right.

    line 29
  4. Distinctive:

    Test at the longest supported locale and the largest Dynamic Type together — that combination is where clipping actually happens.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Localisation

Localisation is an architecture decision taken at the first string, and a translation task only at the end. Teams that reverse the order pay for it twice.

Where a platform skill exists, use it: axiom-localization on Apple platforms. External and optional — missing → follow this file, never file its absence as a defect.

Do this from the first ticket, in every locale count including one

  • Every user-visible string is a key in the catalogue. No string literal in a view, ever. This is cheap now and a full re-read of the codebase later.
  • Never concatenate a sentence from fragments. Word order differs by language. Use one parameterised string per sentence.
  • Plurals use the platform's plural rules, not if count == 1. Several languages have more than two plural forms and 1 items is the cheapest possible way to look unfinished.
  • Dates, times, numbers, currencies and units go through the locale-aware formatter. A hand-formatted date is wrong in most of the world, silently.
  • Never sort or compare user-facing text with byte comparison. Use the locale-aware collator.

Layout

  • Assume text grows 30–40% from English. A button that fits exactly is a button that clips.
  • RTL is a layout mode, not a translation. Use leading/trailing, never left/right; mirror directional icons (back, next, progress) and never mirror ones with real-world orientation (a clock, a logo, a play button).
  • Test at the longest supported locale and the largest Dynamic Type together — that combination is where clipping actually happens.

Region is not language

Region determines: currency and price tier, legal and privacy obligation (privacy-reviewer), store metadata and rating, available payment methods, and sometimes whether a feature may ship at all. A locale added to the catalogue is a market entered. Say so explicitly rather than letting a translation file imply it.

Output

The locale set and its consequences are stated in docs/12-flows.md (navigation and layout impact) and in docs/15-aso.md (store metadata per locale). Pseudo-localise before you have translations — it finds hardcoded strings and clipping without waiting for a translator.

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.