Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeepSeek Traditional Chinese Localizer

English · 繁體中文 · 简体中文 · 廣東話

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.

Why

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.

Requirements

  • curl and jq
  • A DeepSeek API key in the DEEPSEEK_API_KEY environment variable (get one)

Quick start

export DEEPSEEK_API_KEY="sk-your-key-here"
export DEEPSEEK_CONTEXT="Main menu button. Keep it short."
echo "Start Game" | ./scripts/localize.sh

Returns JSON only:

{"source":"Start Game","localized":"開始遊戲","notes":"Concise menu label."}

Configuration

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.

What it holds to

  • 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.

License

MIT — see LICENSE.

About

DeepSeek-powered Hong Kong Traditional Chinese localization reviewer — an agent skill + standalone script.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages