Skip to content

Teach the translate skill what adding German taught - #1073

Merged
richshaw merged 1 commit into
mainfrom
claude/modest-bell-g2r181
Nov 19, 2026
Merged

richshaw merged 1 commit into
mainfrom
claude/modest-bell-g2r181

Conversation

@richshaw

Copy link
Copy Markdown
Owner

Summary

German (#1060) was the first language added from scratch with the translate skill. This writes what that taught into the skill, so the next language (French is likely) starts from it, and corrects the lines #1060 left stale. No app code changes.

What's in it

.claude/skills/translate/SKILL.md, "Adding a language" becomes the order of the work:

  1. Look up what the language's own sign-up sites say before asking the owner anything. German's first plan assumed schools and clubs say Sie; all but two of twenty German helper-list and bring-list sites say du. Then bring the owner only the choices that are theirs, with that evidence, and settle what earlier languages left open for every language (German's open question 3, a language's name inside a sentence).
  2. See what the app puts into its sentences with a new script, scripts/language-facts.mjs <code>. It prints, in the language, what the app's own formatters drop into messages: plural categories, a slot's date and time, numbers, the durations behind {duration} and {wait}, languages' names, and a field label in a sentence. It works for a language with no catalog yet. For French it already shows a third plural category, many, which every French plural will need a branch for, and dates that end in a full stop ("sam. 5 sept."). Then read the code behind each placeholder the glossary wraps: German found that a field label was lowercased in two places, where the guide knew of one.
  3. Write the glossary with a second opinion: a draft made apart by a different model, compared with yours, and every row that wraps a formatted value checked against step 2 (German's "läuft in {duration} ab" broke on "7 Tage").
  4. Translate in batches by area, which may run at once as subagents, each judged by the catalog check rather than a script of its own.
  5. Run the layout specs after the first batch, not at the end ("Geschlossen", "Wird gespeichert…" and "Einstellungen" all overflowed).
  6. Review per area, with one reviewer reading the whole catalog for consistency.
  7. Keep the pull request short-lived: Translate OpenSignup into German, not switched on yet #1060 met two changes to en.json on main in an hour.

references/review.md gains an optional consistency read across a whole catalog (step 6), with its own output section.

docs/translating.md: "Adding a language" points to the skill's steps and the script, and lists CAPITALIZES_NOUNS beside the per-language tables.

Stale lines from #1060. The guide, the skill and CLAUDE.md said every language with a catalog had shipped. German has a catalog and hasn't shipped, so they now say a change to English translates de too (the catalog check only warns for it), that CATALOG_LOCALES is en, sv and de, and that a reused pnpm dev needs E2E_UNSHIPPED_LOCALES=de. The skill also says to write "a different model" where a session's instructions keep model names out of pull requests.

Checks

  • pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm test: pass (3,765 tests). knip sees the new script through .claude/skills/** in its entry list.
  • language-facts.mjs run for fr, de and sv, and refuses a code that isn't a bare language code.
  • No browser tests rerun: nothing under src/ or tests/ changed.

Generated by Claude Code

"Adding a language" in the skill becomes the order of the work, as
German's first pass found it:

1. Look up what the language's own sign-up sites say before asking the
   owner anything (German's first plan assumed Sie; the sites say du).
2. See what the app puts into its sentences: the new language-facts.mjs
   prints, in the language, its plural categories, a slot's date and time,
   numbers, the durations behind {duration} and {wait}, languages' names,
   and a field label in a sentence, all from the app's own formatters.
3. Draft the glossary alongside a second draft made apart, and check rows
   that wrap a formatted value against step 2 ("läuft in {duration} ab"
   broke on "7 Tage").
4. Translate in batches by area, which may run at once, judged by the
   catalog check.
5. Run the layout specs after the first batch, not at the end.
6. Review per area, with one reviewer reading the whole catalog for
   consistency (a new, optional part of references/review.md).
7. Keep the pull request short-lived, translating whatever English reaches
   main meanwhile.

The guide's "Adding a language" points to it and lists CAPITALIZES_NOUNS
with the per-language tables. And the lines that said every language with
a catalog has shipped are true no longer: German has a catalog and hasn't
shipped, so the guide, the skill and CLAUDE.md say a change to English
translates de too, and E2E_UNSHIPPED_LOCALES is de.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016YZ9SU3Lv9FSy3pvxEE8zf
@richshaw
richshaw merged commit b761220 into main Nov 19, 2026
5 checks passed
@richshaw
richshaw deleted the claude/modest-bell-g2r181 branch November 19, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants