agentleFS
XData-siXData-si/xdata-agenthub/skills/i18n-localization/SKILL.md

i18n-localization

Skill1 starsChanged 33 days agoMITView on GitHub

Internationalize and localize software correctly — externalized strings, ICU message format with plurals, locale-aware dates, numbers and currencies, Unicode and text direction, translation workflow and pseudo-localization tests. Use when an application must support several languages (for example the official languages of EU markets) or when translations break layouts or grammar.

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use intelligent-routing, nextjs-react-expert and 5 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SKB3002Skill

    intelligent-routing

    Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions.

    Also in 5 projects that use this

  • SKB3002Skill

    nextjs-react-expert

    React and Next.js performance optimization from Vercel Engineering. Use when building React components, optimizing performance, eliminating waterfalls, reducing bundle size, reviewing code for performance issues, or implementing server/client-side optimizations.

    Also in 3 projects that use this

  • xfstudioSkill

    rust-pro

    Master Rust 1.75+ with modern async patterns, advanced type system

    Also in 5 projects that use this

  • jornalistainclusivoSkill

    design-spec

    How to author a DESIGN.md file — the machine-readable design-token + human-rationale format that must exist before any UI is built. YAML front-matter token schema (colors, typography, spacing, rounded, components), type system, token references, and canonical section order.

    Also in 3 projects that use this

  • zzfancitizenSkill

    verify-changes

    Verify code changes do not break the project by running tests, linter checks, and import validation. Use after making any code changes, editing Python files, modifying imports, updating dependencies, or refactoring.

    Also in 3 projects that use this

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 2

    Distinctive

    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:

    Externalize: every user-facing string into message catalogs with stable keys.

    line 16
  2. Distinctive:

    No hard-coded user-facing strings remain (lint rule or pseudo-locale run shows none).

    line 32

“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “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

Internationalization and Localization

Goal

Adding a language is a translation task, not a code change: no hard-coded strings, correct plurals and formats, and layouts that survive longer text and other scripts.

Inputs

  • Target locales (for example Slovenian, German, French, Croatian), framework i18n library, current string handling, translation process and tools.

Procedure

  1. Externalize every user-facing string into message catalogs with stable keys; include context comments for translators.
  2. Use ICU MessageFormat (or the framework equivalent) for variables, plurals and gender — never concatenate sentence fragments. Languages differ: Slovenian has four plural forms (one, two, few, other), English two.
  3. Locale-aware formatting with the platform APIs (Intl in JavaScript, ICU, Babel in Python): dates, times and time zones, numbers (decimal comma vs point), currencies (EUR placement), sorting and collation.
  4. Unicode: UTF-8 end to end; normalisation for comparison and search; correct case conversion for the locale; fonts covering needed characters (č, š, ž, ß, Cyrillic, Greek).
  5. Layout: allow 30–40 % text expansion; no fixed-width buttons with text; support right-to-left if Arabic or Hebrew are planned.
  6. Locale selection: from user preference, then Accept-Language, then default; never infer language from IP alone; let users switch.
  7. Pseudo-localization in CI: generate an accented, lengthened pseudo-locale to catch hard-coded strings and truncation.
  8. Translation workflow: source strings frozen before release, professional or reviewed translations for legal and safety texts, glossary for product terms; machine translation marked for review.

Example fixture

`You have ${n} new message` + (n > 1 ? "s" : "")

Expected findings: concatenated plural breaks in Slovenian (1 sporočilo, 2 sporočili, 3 sporočila, 5 sporočil); use an ICU plural message instead.

Acceptance checks

  • No hard-coded user-facing strings remain (lint rule or pseudo-locale run shows none).
  • Plural tests for each target locale with counts 0, 1, 2, 3, 5 and 101.
  • Negative case: switching to a long pseudo-locale produces no truncated or overlapping UI in key screens (screenshots).

Output

Catalog structure, refactored messages, formatting utilities, CI checks and translator guide.

Safety

Legal texts (terms, consent, safety warnings) require qualified human translation and review before publication. Do not send unpublished or confidential texts to external translation services without approval.

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.