No. 030Filed by The Reporter

WorkflowsNot tested by usReported · source
Anthropic

· Power user

Reported, not yet confirmed.

A Claude Code hook that keeps 19 locale files in sync

He uses a Claude Code hook to keep 19 locale files in sync, and a daily review to catch outreach that had silently stopped.

Illustration: an upright hard-shell carry-on suitcase seen straight on, handle retracted, with vertical ribs and two wheels, in black and white.
Illustration

123456

You can have a Claude Code hook check your translation files after each edit and stay quiet unless something breaks. Kadirhan Yilmaz (@heykadirhan) posted on Nov 10 (12:12 PM ET): "Unboom's site is in 19 languages. When I change the English copy, 18 other JSON files need the same keys and placeholders." Then: "Now a Claude Code hook runs my checker after each edit to those files. It stays quiet when they pass and shows Claude only the lines that fail." This is self-reported from a small account (18 followers on our Nov 11 read), and we have not run it.

On this page
  1. What it replaces
  2. Why it matters
  3. Repeated use
  4. Good to know
  5. Set up the hook

Disclosure: his bio says he is building QuickStaging ("AI virtual staging") and Unboom ("fixes boomy bass"). He sells both, and these posts are build-in-public notes about them.

What it replaces#

Before: checking 18 translated JSON files by hand after every English copy change. After, in his telling: the hook runs his checker after each edit, and Claude sees only the lines that fail.

His second job follows the same idea. Before: "QuickStaging's cold outreach sent zero new first emails for ten days and nothing told me. From Oct 27 the picker found 0 businesses every day." After: "Now the script counts what's waiting at each stage, and my daily Claude Code review task warns me when it's under a day of sends" (Nov 10, 2:07 AM ET).

Why it matters#

Our read: both jobs share one pattern. Don't ask Claude to remember a rule; give it a check that only speaks up on failure. Claude Code hooks fit that shape. Per Anthropic's hooks docs, "Claude never sees stderr from a hook that exits 0," and for a PostToolUse hook, exit code 2 "Shows stderr to Claude; the tool already ran". Quiet on pass and specific on fail keeps Claude's context clear of passing output.

Repeated use#

Each job rests on a single Nov 10 post. He describes the hook as running "after each edit to those files," and he calls the review task daily. He doesn't say whether that review is a Claude Code scheduled task or something he starts by hand. He has posted other Claude Code jobs on the same products: on Oct 30 (1:11 PM ET) he had it check QuickStaging's software-directory listings, where one still showed "API Access." "There is no API." His rule there: "Before drafting fixes, it listed every fact the copy uses and the repo file each came from. Nothing goes in until I approve it."

Good to know#

  • PostToolUse can't undo the edit. The docs say exit 2 there doesn't block, because "the tool already ran," so the hook makes Claude fix the files on its next step rather than preventing the bad write.
  • Budget unattended runs. His own warning, from a different job: "Last time I let Claude Code run without a budget limit, my AWS bill went past $200" (Oct 24, 5:35 PM ET).
  • Our read: a job that runs is not a job that works. From Oct 27 his picker "found 0 businesses every day," and nothing told him. His fix counts what's queued.

Set up the hook#

  1. Put a checker at .claude/hooks/check-locales.sh that compares every locale file against en.json, prints only failing lines to stderr, and exits 2 if anything fails, 0 if not.
  2. Register it in .claude/settings.json as a PostToolUse hook with matcher Write|Edit. This matches the docs example that uses ${CLAUDE_PROJECT_DIR} "to run a style checker from the project's .claude/hooks/ directory after any Write or Edit tool call" (docs):
{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Write|Edit",
        "hooks": [
          {
            "type": "command",
            "command": "${CLAUDE_PROJECT_DIR}/.claude/hooks/check-locales.sh"
          }
        ]
      }
    ]
  }
}
  1. Optionally narrow it with the hook's if field (permission-rule syntax such as "Edit(*.ts)" per the docs) so it only runs on your locale files.
  2. Change one English string on purpose and confirm Claude sees just the mismatched lines.

Prompt (ours, untested; to have Claude Code write the checker):

Prompt
Write .claude/hooks/check-locales.sh. It compares every JSON file in
locales/ against locales/en.json. Report, one line each: keys missing
from a locale, extra keys not in English, and strings whose {placeholders}
differ from the English string. Print nothing when everything matches
and exit 0. When anything fails, print only the failing lines to stderr
as "<file>: <key>: <problem>" and exit 2. No network, no writes.

Last checked: Nov 11, 2026, 3:38 to 3:44 PM ET. What changed: first filed as a Thursday showcase candidate Nov 11.

Sources

  1. @heykadirhan on X: a Claude Code hook for 19 locale files (Nov 10)x.com1
  2. @heykadirhan on X: outreach that sent zero first emails for ten days (Nov 10)x.com2
  3. @heykadirhan on X: Claude Code checks software-directory listings (Oct 30)x.com3
  4. @heykadirhan on X: AWS bill past $200 without a budget limit (Oct 24)x.com4
  5. @heykadirhan on X (profile)x.com5
  6. Claude Code docs: Hooks referencecode.claude.com6

Something wrong? Tell the bot