Final-pass Hong Kong Traditional Chinese localization, reviewed by DeepSeek — native rhythm, exact markup, no translationese.
A small, focused tool that sends player-facing strings — game dialogue, UI labels, long-form copy — to DeepSeek and returns polished Hong Kong Traditional Chinese. It is built to be the last step before text ships: it preserves your markup, placeholders, numbers and meaning exactly, and rewrites only the language so it reads like a native wrote it.
Shipped as a Claude Code / agent skill (SKILL.md + one bundled script), but scripts/localize.sh runs standalone from any shell — no framework required.
Machine translation into Traditional Chinese tends to leak Simplified/Mainland phrasing, default colloquial Cantonese particles, or stiff "translationese." This tool pins the register to formal Hong Kong written Chinese, holds a tight review contract, and returns structured JSON you can drop straight into a pipeline.
curlandjq- A DeepSeek API key in the
DEEPSEEK_API_KEYenvironment variable (get one)
export DEEPSEEK_API_KEY="sk-your-key-here"
export DEEPSEEK_CONTEXT="Main menu button. Keep it short."
echo "Start Game" | ./scripts/localize.shReturns JSON only:
{"source":"Start Game","localized":"開始遊戲","notes":"Concise menu label."}| Variable | Purpose | Default |
|---|---|---|
DEEPSEEK_API_KEY |
Your DeepSeek key (required) | — |
DEEPSEEK_CONTEXT |
Surface, speaker, intent, length constraint. Tighter context → better output. | generic copy |
DEEPSEEK_MAX_TOKENS |
Output token cap | 500 |
The key is only ever read from the environment — it is never written to disk or baked into the script.
- Formal Traditional Chinese written register; avoids default colloquial Cantonese particles (嘅、咗、啲、唔、係、喺).
- Preserves placeholders, variable names, HTML entities, line breaks, and speaker identity.
- Rejects invented facts, inflated claims, or altered numbers.
- Low temperature (0.2) for consistent, repeatable wording.
See SKILL.md for the full reviewer workflow and QA checklist.
MIT — see LICENSE.