Repository navigation
Teach the translate skill what adding German taught - #1073
Merged
Merged
Conversation
"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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
German (#1060) was the first language added from scratch with the
translateskill. 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: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.en.jsononmainin an hour.references/review.mdgains 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 listsCAPITALIZES_NOUNSbeside 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
detoo (the catalog check only warns for it), thatCATALOG_LOCALESisen,svandde, and that a reusedpnpm devneedsE2E_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).knipsees the new script through.claude/skills/**in its entry list.language-facts.mjsrun forfr,deandsv, and refuses a code that isn't a bare language code.src/ortests/changed.Generated by Claude Code