i18n-studio
Skill387 starsChanged 5 months agoMITView on GitHub
This skill should be used when editing, translating, or reviewing an Astro-style i18n string corpus (files of the form export default { en: {...}, ru: {...} } under src/i18n/strings), or when the user wants to fill in missing translations, audit coverage, accept/review translations, propagate an edit across duplicate strings, get translation candidates, bulk-edit UI microcopy, or open a visual/keyboard translation editor. Drives the standalone i18n Studio tool at ~/ai_projects/i18n-studio (AST-safe minimal-diff saves via ts-morph, acceptance review state, duplicate propagation, hot-reload, and Claude translation suggestions).
In this repository104 other files it gives its agents.
- automation-advisor/CLAUDE.mdCLAUDE.md
- agency-docs-updaterSkill
- agency-meetup-publishSkill
- agency-socialsSkill
- agent-cliSkill
- app-releaseSkill
- automation-advisorSkill
- balancedSkill
- brand-agencySkill
- browser-mateSkill
- browsing-historySkill
- chrome-historySkill
- coaching-session-summarizerSkill
- codexSkill
- cognitive-toolkitSkill
- context-builderSkill
- cull-release-checkSkill
- cull-release-prepareSkill
- cull-release-publishSkill
- cull-release-recoverSkill
- cull-releaseSkill
- cull-release-verifySkill
- cullSkill
- daydreamSkill
- decision-toolkitSkill
- deep-researchSkill
- design-tokensSkill
- doctorgSkill
- ecosystemSkill
- elevenlabs-ttsSkill
- elimination-researchSkill
- fathomSkill
- feature-factorySkill
- firecrawl-researchSkill
- font-featuresSkill
- github-gistSkill
- gmailSkill
- google-image-searchSkill
- gpt-image-2Skill
- granolaSkill
- gwsSkill
- health-dataSkill
- init-tauri-appSkill
- init-xcode-appSkill
- insight-extractorSkill
- jtbdSkill
- lab-retroSkill
- learning-vaultSkill
- linearSkill
- llm-cliSkill
- local-modelsSkill
- meeting-prepSkill
- meeting-processorSkill
- metaSkill
- name-auditionSkill
- nano-bananaSkill
- nielsen-heuristicsSkill
- pdf-generationSkill
- peer-agent-collaborationSkill
- presentation-generatorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Use it instead of hand-editing .ts string files with Edit/sed: manual edits risk formatting churn, broken quoting/escaping, and desynced …
- Very specific: line 41
Use that path as --dir below.
- Distinctive: line 46
Start it in the background, pointed at the target strings dir, and wait until it is reachable:
- Distinctive: line 109
Duplicate propagation: after editing a string that others shared, a banner offers *apply to all* — one click updates every entry that held …
- Very specific: line 120
Never blindly apply a suggestion: Before set, verify the candidate keeps the same HTML tags and entities as the source (<b>, <span ...>, …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
i18n Studio
Purpose
i18n Studio edits Astro-style i18n string files safely: files shaped like
export default { en: {...}, ru: {...} } where leaves are UI strings. It writes
one string literal at a time through a ts-morph AST, so every save is a minimal
one-line diff with all surrounding formatting preserved, and a running dev server
hot-reloads. It also produces Claude translation candidates that preserve HTML
tags and tone.
Use it instead of hand-editing .ts string files with Edit/sed: manual edits
risk formatting churn, broken quoting/escaping, and desynced languages. The AST
layer avoids all three.
When to use
- Filling in missing translations for a language (e.g. "translate the new hero copy to Russian", "fill the German gaps").
- Auditing coverage ("which strings are untranslated?").
- Editing UI microcopy in one or more languages.
- Getting translation candidates for a specific string.
- Opening a visual editor for a human to translate interactively ("open the translation editor").
Applies to any repo whose translations follow the export default { <lang>: {...} }
convention, not one specific project.
Locate the strings directory first
The tool defaults to <cwd>/src/i18n/strings. Confirm the real location before
starting (it may differ):
ls src/i18n/strings 2>/dev/null || find . -path '*/i18n/strings' -type d -not -path '*/node_modules/*' | headUse that path as --dir below. Ensure the tool is installed once:
cd ~/ai_projects/i18n-studio && npm install.
Start the server (required for the API and the UI)
Start it in the background, pointed at the target strings dir, and wait until it is reachable:
node ~/ai_projects/i18n-studio/server.mjs --dir "$PWD/src/i18n/strings" --port 4331 &
until curl -sf http://localhost:4331/api/strings >/dev/null; do sleep 0.5; donePass --langs en,ru,de if the corpus has languages beyond the en,ru default,
and --voice "<one-line tone brief>" to steer suggestion style. Stop it with
kill %1 (or the printed PID) when finished.
For a human to edit visually, start the server the same way and share the URL
(http://localhost:4331); do not try to click the web UI programmatically.
Drive it with the helper CLI
scripts/i18n.mjs (dependency-free, Node 18+) wraps the API. Point it at the
server with I18N_URL if the port is not 4331.
S=~/ai_projects/claude-skills/i18n-studio/scripts/i18n.mjs
node "$S" audit --to ru # status breakdown + untranslated/missing
node "$S" audit --to ru --pending # also list translated-but-unaccepted
node "$S" get Hero.ts en h1 # read a value
node "$S" suggest Hero.ts h1 --from en --to ru # 3 candidates (proposals only)
node "$S" set Hero.ts ru h1 "Сначала — результат" # AST-safe write (→ pending)
node "$S" accept Hero.ts ru h1 # mark reviewed/accepted
node "$S" unaccept Hero.ts ru h1 # back to pending
node "$S" ignore Dream.ts ru s2 # mark n/a — "doesn't need translation"
node "$S" unignore Dream.ts ru s2 # back to untranslated/pendingTypical translation-fill loop: audit --to <lang> to see the breakdown and gaps →
for each gap, suggest from the source language → review the candidate (see rules
below) → set the chosen value → accept once it is right.
Acceptance is a durable review state (sidecar .i18n-status.json); editing a
value automatically drops it back to pending. A cell can instead be marked n/a
("doesn't need translation" — a name, a fragment, a shared token): ignore drops
it out of the untranslated/pending gap counts so it stops nagging, and — unlike
accept — works on an empty/untranslated cell. Like acceptance it is value-coupled,
so translating the cell later re-surfaces it. For a human reviewer, the fullscreen
review mode (below) is faster than the CLI.
The raw routes (GET /api/strings, POST /api/save, POST /api/suggest), data
shapes, dot-path rules, config flags, and a no-server library path are documented
in references/api.md. Read it before doing anything beyond the CLI above.
Visual editor: review mode, filters, duplicates
For a human, the browser UI is the fast path. Start the server, share the URL, and point out:
- Source → target switch in the header (work any language against any reference).
- Filters: show all / untranslated / pending / accepted / n/a / duplicates / code-like, by file, with sort (file / path / status / duplicates-first) and live counts.
- Hide code-like: asset paths, CSS vars/colors, class names and identifiers are detected and hidden from the queue by default (they rarely need translation).
- Accept and n/a buttons per row (and a duplicates badge
×N). The n/a toggle marks a string as not needing translation — it works even on empty cells and removes them from the untranslated queue. - Duplicate propagation: after editing a string that others shared, a banner offers apply to all — one click updates every entry that held the old value.
- Fullscreen review (
review ▸): steps through the filtered set one at a time, fully keyboard driven with a visible legend —←/→orj/kmove,aaccept & next,ppending,imark n/a & next,eedit,ssuggest,1/2/3apply a suggestion,uundo,Escclose,>focus. Tab lands on the edit field; clicking the file name filters the list to that file. This is the tool for grinding through thousands. - Focus mode (
Shift + .): hides all chrome, leaving only the strings.
Rules that matter
- Never blindly apply a suggestion. Before
set, verify the candidate keeps the same HTML tags and entities as the source (<b>,<span ...>, ,',—) in the same positions, and does not translate code identifiers or proper nouns. Suggestions are proposals, not decisions. - Interpolated strings are editable, placeholders are sacred. Template literals
with
${...}come backeditable: true, interp: true(badged${…}); translate the prose but keep every${...}placeholder exactly. Only non-string leaves (numbers, identifiers) stay read-only and must be edited in the.tssource. - Dot-paths use numeric indices for arrays, e.g.
weeks.2.sessions.1.t. - One save writes one leaf. Loop for bulk work; there is no batch write.
- Hot reload needs the target project's own dev server running; the write lands on disk either way.
- Confirm before mass edits. Auto-translating a whole language is a large, outward-facing change to the product copy; surface the gap list and confirm scope with the user before writing many strings.
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
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.

