- How you use it
- You ask for it
- What it can do
- writes files · runs shell
- What's inside
The option
| Option | ASkill · v1.0.0Check reviewed source hashes for translation drift |
|---|---|
| How you use it | You ask for it |
| What it can do | writes files · runs shell |
| What's inside |
What this thread does
The problem
You change an English UI string, for example "Save task" to "Save task changes". Every other locale file still has a value for that key, so a completeness check says all is fine, and users see the old meaning in French or German. Missing-key checks cannot see this. You need to know which translations were made against an older source text.
What the source says
TaskNotes (an open-source Obsidian plugin, MIT licence) documented its answer in docs/development/i18n-state-manager.md, which now says it describes the historical keyed translation tool: TaskNotes has since moved to Lingui PO catalogues (npm run i18n:extract, with npm run i18n:check in CI) and removed the old resources, state files and command wrappers (checked 2026-10-29). It had extracted the tool as an npm package, i18n-state-manager (MIT, version 0.1.0, last published November 2025).
- (Historical.) A manifest file (
i18n.manifest.json) holds a SHA1 hash of every source-language string. - A state file (
i18n.state.json) holds, per locale and key, the source hash the translation was created against. A key is current if the hashes match, missing if there is no entry, stale if the source hash changed. - (Historical.) Commands in its
package.json:i18n-state sync(update manifest and state),verify(exit code fails on missing or stale keys),status(coverage percentages),generate-template <locale>(a file where missing keys readTODO:and stale onesSTALE: <old translation>), pluscheck-usage,find-unused,check-duplicates. - (Historical.) The old guide described CI running
syncand failing when the committed manifest or state differed. I did not find a workflow file that did this. Current TaskNotes CI instead runsnpm run i18n:check(authored catalogue completeness and source synchronization), a different mechanism. - (Historical.) The old guide's workflow for a changed English string: edit English, run
sync(French becomes stale), runverifyto list the stale keys, fix the translation, runsyncagain, commit manifest, state and locale files. The currentI18N_GUIDE.mddescribes the Lingui workflow instead and has no such sync step (checked 2026-10-29). - The current guide no longer mentions a
/translate-missingcommand in Claude Code. Do not treat that historical reference as something you can install (checked 2026-11-24).
The TaskNotes AGENTS.md also tells agents that translations must be current and in the target language, not English placeholders, and lists translation verification among the checks to run before finishing.
A way to use it with an agent (mine, not tried)
TaskNotes no longer uses this tool; the npm package is a 0.1.0 release last published in November 2025, not the current TaskNotes workflow.
1. Install the tool as a dev dependency and add i18n:verify to your CI. 2. Prompt: "Run npx i18n-state verify. For each stale key, show the old English, the new English and the current translation, then update only that locale value, keeping placeholders like {{name}} unchanged. Do not touch current keys. Run npx i18n-state sync and verify again." 3. Review the diff: an agent can silently drop a placeholder or change a term.
Other tools the sources mention
- Lingo.dev (CLI, Apache-2.0) keeps a lockfile of content fingerprints so only new or changed strings are translated (
lingo pushdiffs the source against.lingo/lock.json; checked 2026-10-29). Its docs name the lockfile and commands differently across versions (i18n.lockin some pages,.lingo/lock.jsonandlingo pushin the current one), so check the page for your CLI version before copying commands. - A Debian merge request and a localisation-drift blog post (bugnet.io) describe the same idea (hash of source stored with the translation), so the pattern is not specific to one tool.
Common mistakes
- Running
syncafter editing a translation without actually updating it: that marks it current. Run it only after the translation is fixed. - Committing locale files but not the state file: CI then fails or, worse, passes with stale data.
- Letting an agent re-translate a whole locale. Limit it to stale keys so reviewed wording is not rewritten.
Not verified
I read the docs and the repository files and did not run i18n-state-manager myself. The package is at version 0.1.0 and has had no release since November 2025.
Sources
Checked against primary sources:
- callumalpass/tasknotes metadata and
docs/development/i18n-state-manager.md: MIT;i18n.manifest.jsonwith SHA1 hashes of source strings,i18n.state.jsonwith the source hash per translation, current, missing and stale states, and the commandssync,verify,status,generate-template,check-usage,find-unused,check-duplicates; Node.js 16 or later and ripgrep for the scanning commands.AGENTS.mdline telling agents to follow the I18N guide with translations current and not English placeholders, and to run translation verification. The CI and workflow claims are marked historical above: on 2026-10-29 the doc said it describes the historical tool, and the currentI18N_GUIDE.mdandtest.ymluse Lingui (i18n:check). - npm registry entry for i18n-state-manager: MIT, only version 0.1.0, published 2025-11-04.
- lingo.dev repository: Apache-2.0; the current README uses
lingo pushand.lingo/config.json, which supports the body's warning about differing commands across versions. A--frozenflag is not on lingo.dev/en/cli (checked 2026-10-29), so the body no longer mentions it;i18n.lockis unchecked.
Not checked here: /translate-missing is mentioned in the guide but no .claude folder was found in the repository (consistent with the body); the Debian merge request and the bugnet.io post were not opened. The sample prompt is our own. Not run.
Started from a post by @Callum Alpass (TaskNotes), packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.