Index of every page on this site: llms.txt
All skills
abdurshd avatar

/i18n-sweep

@b47f145
Run it yourself

Sweeps a codebase for internationalization gaps, including hardcoded user-facing strings, missing translation keys, and locales that drifted out of sync, then fills the gaps with proper translations and verifies the result. Use when UI is untranslated, screenshots show mixed languages, the user asks to add a language, or an i18n audit is requested for a page, directory, or whole project.

Use this Skill: https://skilld.dev/gh/abdurshd/skills/i18n-sweep

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈101 tokens for metadata: the name and description. ≈776 when used: this file.

Description uses 5.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈403 characters, or 5.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

i18n sweep

UI grows faster than translations. Typed catalogs catch missing keys, but nothing catches hardcoded strings that never became keys — those slip past every typecheck and show up as mixed-language screenshots. This skill hunts both.

Step 1 — Map the i18n system

Detect how this project translates: typed message catalogs, i18next/react-intl, or a custom dictionary. Find:

  • The locale list (e.g. en, uz, ru, ko) and the catalog file per locale.
  • The lookup mechanism (t('key'), typed dict access, component wrappers).
  • The reference locale (usually the most complete one — verify, don't assume it's en).
  • Any documented exceptions in AGENTS.md, CLAUDE.md, client-specific project instructions, or decision docs—some content is intentionally untranslated (for example, practice text, code snippets, or brand names). Respect those.

Step 2 — Find the gaps (two different hunts)

Hunt A — catalog drift. Diff every locale's keys against the union of all keys. Report missing keys per locale. If catalogs are typed, tsc output helps but is not sufficient — check for keys whose value is an empty string, a TODO, or a copy of another language.

Hunt B — hardcoded strings. Scan the scoped source (JSX text nodes, Text components, placeholder/title/aria-label/alt attributes, toast/error messages, empty states, dialog buttons) for user-facing string literals that bypass the i18n system. Heuristics: literal strings containing spaces or unicode letters in render code; template literals building sentences. Exclude: log lines, test files, config, CSS values. List every hit with file:line.

Report counts before fixing: "N missing keys across M locales, K hardcoded strings" — and if the sweep was scoped, say what was NOT scanned.

Step 3 — Fix

  • Convert each hardcoded string into a key + catalog entries for every locale, following the project's existing key-naming convention.
  • Fill missing translations with native-quality text, matching the tone of that locale's existing entries (formal vs casual register matters — mirror what's there).
  • Keep interpolation variables/placeholders identical across locales; never translate variable names.
  • Preserve pluralization structures if the framework supports them.
  • Don't invent locale-specific formatting: reuse the project's existing date/number formatting helpers.

Step 4 — Verify

  1. Typecheck + build.
  2. Re-run Hunt A: zero key drift.
  3. Re-run Hunt B on the touched files: zero remaining user-facing literals (minus documented exceptions).
  4. If a dev server/preview is available: render the worst-affected pages in each locale and confirm no fallback language bleeds through, and no layout breakage from longer strings (German/Russian/Uzbek text is often 30-40% longer than English).

Report

Per-locale coverage table (keys present / total), list of files touched, strings converted, translations added, documented exceptions skipped, and anything that needs a human native-speaker review. Don't commit/push unless asked (see the ship skill).

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill provides instructions for auditing and fixing internationalization (i18n) gaps in a codebase, such as identifying hardcoded strings and missing translations. It does not contain any executable code, external downloads, or suspicious patterns.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: LOW · No issues

Signed by skilld at b47f145. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 4 months ago

README badge

README badge for abdurshd/skills/i18n-sweep