agentleFS
chatquillchatquill/claude-code-websites/.claude/skills/add-i18n/SKILL.md

add-i18n

Skill1 starsChanged 25 days agoMITView on GitHub

Internationalises the app: picks an i18n library for the stack, adds locale routing and hreflang, extracts strings to ICU message catalogues, sets up Intl formatting, RTL support and a pseudo-locale check. Use when adding a second language or making the product translation-ready.

5 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use add-cron.

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.
  • buildpad-aiSkill

    add-cron

    Scaffold the Buildpad Cron Jobs module — ready-made /cron and /cron/[id] admin pages (CronJobsManager with a jobs list and a run History tab, CronJobDetail with a code editor slot, settings and per-job history, CronRunsTable, CronRunLogModal). Use when the user wants an admin UI to list, edit, run, activate, clone or delete DaaS cron jobs, or to inspect run history and logs. To create or change a cron job itself through DaaS (schedule, sandboxed code, manual trigger), use create-cron instead.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    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:

    Ask: stories per area (recommended) or direct implementation.

    line 48

“Common” is measured: kept by at least 6 in 10 of the 5 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

Add i18n

Makes every user-facing string translatable and every date, number and currency locale-correct. Translations themselves are drafted only on request and flagged for human review.

Inputs

  • project.yaml → i18n.default_locale, i18n.locales, stack.frontend, stack.cms
  • Existing components and pages (Grep for JSX/template text nodes)

Phases

Phase 1: Locales and routing

Confirm the locales (argument or ask) and update i18n.locales via config-set.sh after approval (write the list as [en, de]). Ask: URL strategy (/de/... prefix (recommended), subdomain or domain per locale), and default-locale behaviour.

Phase 2: Library

i18n-specialist picks by stack, e.g.: Next.js → next-intl; Nuxt → @nuxtjs/i18n; SvelteKit → Paraglide; Astro → built-in i18n routing + a messages lib; Angular → built-in i18n or Transloco; Remix → remix-i18next; Laravel/Django/Rails → the framework's own. ADR if it's a new dependency.

Phase 3: Plan

  • message catalogues messages/<locale>.json (or the framework's format), ICU plurals/selects, type-safe keys
  • string extraction plan per page/component (no string concatenation, no text in images)
  • Intl formatting helpers for dates, numbers, currency, relative time; explicit time zones
  • hreflang + localised metadata with seo-specialist; sitemap per locale
  • RTL: dir attribute, logical CSS properties, mirrored directional icons
  • CMS localisation fields if a CMS is used
  • pseudo-locale (en-XA) for catching hard-coded strings and truncation
  • tests: missing-key check in CI, Playwright run in a second locale

Ask: stories per area (recommended) or direct implementation.

Never

Machine-translate legal or marketing copy without marking it for human review; detect locale in a way that traps users (always offer a switcher).

Next step

/seo-audit to verify hreflang and localised metadata.

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.