English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Français · Deutsch · Español (ES) · Português (BR) · All languages
Copy this prompt into your coding agent:
Install the game-localization skill from this repository:
https://github.com/superwyh/Game-Localization-Engineering
Locate game-localization/SKILL.md and preserve the complete folder.
Use the current agent’s supported user-level skill directory.
Check existing local changes before updating.
Verify Python 3.10+ and run scripts/check_package.py in the installed package.
Report the installation path, check results, and invocation method.
Game Localization Engineering is a self-contained skill for translating game projects, preserving resource integrity, reviewing updates, and producing a detailed developer handoff. The agent translates using the game’s context; bundled Python tools manage extraction, review records, structural checks, staging, integration, and recovery.
| Capability | What it handles |
|---|---|
| Context and voice | Terminology by concept; speaker, addressee and story-stage voice; UI, dialogue, subtitles, items, quests, humor and linked puzzle clues. |
| Resource protection | Stable IDs, parameters, markup, protected literals, source revisions and metadata. Direct adapters for flat JSON maps, CSV and TSV. |
| Incremental updates | Retain unchanged translations, mark changed source/context/guidance as stale, keep the original translation basis, and preserve removed entries for recovery. |
| Returned reviews | Export CSV packets; match reordered rows by ID; detect competing edits, changed source fields and concurrent local changes before writing. |
| Guarded integration | Stage outputs, inspect per-ID changes, check destination hashes, retain backups and refuse rollback over later developer edits. |
| Coverage and LQA | Separate logical messages, physical resource slots and build-bound scene evidence; validate layout, switching, input, fonts and accessibility when applicable. |
| Scoped compliance | Off by default. Enable triage or release review only for selected markets, platforms and mechanics, using local versioned evidence. |
| Developer delivery | Full source/target comparison plus decisions, file changes, actual checks, unresolved issues, exclusions and a concrete verification checklist. |
Review awkward phrasing, source-language syntax, repetitive templates, and unsuitable register while preserving meaning, character voice, clues, and resource syntax. Establish the meaning, edit in the target language, read the complete scene, then return to the source to check facts, uncertainty, conditions, and game function. Keep good text and intentional repetition unchanged.
For example, The seal may be weakening. can become 封印可能正在减弱。 in simplified Chinese; 封印已经松动了。 changes a possibility into an established fact. Naturalness does not authorize that change. Dynamic grammar, puzzle layout, and subtitle timing may need engineering work.
Use only the requested language and regional rules. Record significant before/after edits, reasons, preserved constraints, actual checks, and developer questions. The CLI records and reports judgments; it does not automatically certify naturalness. AI detector scores are not acceptance criteria. Keep editorial commentary out of shipped strings and final prose, while retaining useful review evidence.
Review this game's existing translations for naturalness. Preserve meaning, character relationships, mechanics, clues, and variables. Keep a before/after record of substantive edits with reasons. Recheck the final wording against the source, validate the applicable resources, and report unperformed checks and developer decisions.
Naturalness procedure · Decision examples and report record
Select the languages the game actually needs. The workflow does not use a fixed global translation list. An unlisted language can use the baseline pipeline, with suitable project guidance, model capability and language review. A documentation edition is not a certification of translation quality for that language.
Included guidance distinguishes mainland simplified Chinese, Taiwan and Hong Kong usage; English regional spelling; Japanese/Korean address and politeness; German/French agreement; Spain/Latin American Spanish; French for Canada; European/Brazilian Portuguese; Russian/Polish inflection; and Turkish/Azerbaijani casing. UI text, voice-over, subtitles, number/date formatting, narration and release markets are configured separately. Character conversion alone does not complete regional localization.
The agent decides which checks to activate from target language/script tags, actual text, player-input scope and the engine’s rendering/input architecture. It then records required, passed, failed, unrun or inapplicable capabilities. The CLI does not automatically diagnose every writing system or certify an engine’s renderer.
| Trigger | Focused checks |
|---|---|
| Arabic, Persian, Hebrew | Mixed RTL/LTR text, names, digits, punctuation, selection and copy; Arabic joining, Persian ZWNJ and Hebrew marks each need appropriate checks. |
| Urdu | Actual Nastaliq font, sloping baselines, ligatures, narrow controls and multiline clipping. |
| Indic scripts | Consonant clusters, reordered vowels, combining marks and safe typewriter/deletion behavior; test each selected script. |
| Thai, Lao, Khmer | Word segmentation, dictionary data in shipped builds, line wrapping and intact clusters. |
| Myanmar | Unicode versus legacy encoding provenance; preserve originals and review conversion decisions. |
| Tibetan | Stacked letters, tsheg, punctuation, line height and syllable/line boundaries. |
| Traditional Mongolian | mn-Mong vertical flow, columns progressing right, suffix NNBSP, caret and selection; separate from mn-Cyrl. |
| Japanese/Chinese vertical text | Enable only for a vertical design; inspect punctuation, ruby, upright digit groups and mixed Latin text. |
| Korean IME and player input | Composition states, Jamo/syllables, focus, undo and save; for global names/chat also test emoji and combining sequences. |
An English/Chinese menu-only project does not acquire an unrelated worldwide script matrix. Global nicknames or chat can trigger display/input checks without translating every menu. String fallback, glyph fallback, shaping and line breaking are tested separately; reversing text or finding a glyph in a font is not sufficient.
The bundled CLI directly edits flat JSON and CSV/TSV. The following engines have integration procedures and acceptance criteria; native formats require the project’s installed editor/exporter or a verified adapter. No automatic all-engine binary importer is claimed.
| Engine / framework | Integration focus |
|---|---|
| Unity | String/Asset Tables, stable shared IDs, Localization/TMP/UI versions, Addressables lifetimes, asynchronous switching and packaged fonts. |
| Unreal Engine | FText namespace/key/source identity; gather → export → import → compile → cook; validate localized assets and packaged culture data. |
| Godot | Translation resources, CSV/PO, context/plurals, tr/tr_n, TranslationServer notifications, TextServer, themes and export data. |
| Yarn Spinner | Stable line IDs and source locks, stale translation updates, line/audio matching and the project’s actual markup parser. |
| Ink | Preserve story logic, tags, glue and original choice indices; presentation refresh must not advance the story or repeat rewards. |
| Ren’Py | Native translate blocks, interpolation, tags, language switching, rollback, skip, saves and one-time side effects. |
| MonoGame / custom | Inspect resource containers, formatters, font shaping, input and save boundaries; implement only the adapter the project needs. |
| Web / Construct | Preserve object/event IDs; separate display language, number formatting, DOM/Canvas layout, focus, narration and IME. |
Integration follows probe → extract → validate → render separately → native import/build → runtime verification. Keep localization lookup and presentation separate from gameplay state. Record unknown formats instead of guessing. Binary/archive projects additionally need encoding, pointers, alignment, compression, unchanged-member checks and build lineage. Existing project frameworks and developer edits remain authoritative.
Use game-localization on this Unity project. The source is en-US; target only zh-Hans-CN, zh-Hant-TW and ja-JP. Preserve the existing String Tables and line IDs. Follow the supplied character and terminology files. Keep compliance off. Translate, review, integrate within the current pipeline, perform available checks, and deliver the full comparison and an English developer report with unrun checks clearly identified.
Refresh against a new source baseline, inspect stale/orphaned entries, then export one locale for review. Reordered rows are matched by ID. A returned row is not approved until its decision explicitly says accepted; conflicting edits reject the entire import before translations are written. REVIEWER must identify the actual reviewer.
python -B -X utf8 SKILL/scripts/l10n.py refresh --previous OLD_RUN --config project.json --run NEW_RUN
python -B -X utf8 SKILL/scripts/l10n.py review-export --run NEW_RUN --locale zh-Hant-TW --out PACKET
python -B -X utf8 SKILL/scripts/l10n.py review-import --run NEW_RUN --packet PACKET --reviewer REVIEWER --kind developer
Add ar to this game’s existing language system. Establish written register and voice-over requirements separately. Inspect mixed-direction text, player names, numbers, joining, selection, fonts and language switching in the actual engine. Keep gameplay state unchanged. Do not add other target languages or assume any release country. Report unavailable runtime checks and required developer actions.
| Source | Example target | Context-dependent decision |
|---|---|---|
| Save progress | 保存进度 / 儲存進度 | Action button; retain the distinction from a running operation. |
| Saving progress… | 正在保存进度… / 正在儲存進度… | Operation is still running; do not claim it has completed. |
| Keep your head down. | 别引人注意。 / 別引人注意。 | The supplied scene means avoiding a patrol’s attention; another scene could require a physical ducking instruction. |
The local Fog Harbor example includes 7 source messages, 2 Chinese target locales and 14 source/target pairs, including parameters, a spoken choice and an extra-charge condition. It contains real resource-workflow results; engine rendering and independent native review remain untested.
Read the complete example developer report
Copy the example configuration and sample-project into a separate workspace. Replace SKILL, RUN and project paths with actual quoted paths. After extraction, the agent fills translations, review records and substantive review-notes.json before staging. Commands do not generate translations by themselves.
python -B -X utf8 SKILL/scripts/l10n.py extract --config project.json --run RUN
python -B -X utf8 SKILL/scripts/l10n.py qa --run RUN
python -B -X utf8 SKILL/scripts/l10n.py stage --run RUN
python -B -X utf8 SKILL/scripts/l10n.py apply --run RUN
python -B -X utf8 SKILL/scripts/l10n.py report --run RUN
Every delivery includes developer-report.md and translation-review.md, even when work is partial. They show all selected entries, source and target, context, constraints, source revision, review identity, significant decisions, file changes, recovery information, actual validation, remaining issues and concrete developer actions. Resource coverage can distinguish, for example, 120 translated logical messages from 147 physical slots and 12 scenes. Missing/unknown denominators stay visible. Final developer signoff remains with the developer. Generated report presentation supports en and zh-CN independently of game and documentation languages.
Python 3.10+; standard library only, with no translation API key or network calls in the bundled CLI. The project supplies its engine, build tools, fonts and relevant release evidence. Run the following from the skill directory:
python -B -X utf8 -m unittest discover -s scripts -p "test_*.py"
python -B -X utf8 scripts/check_package.py
The regression suite uses isolated synthetic projects. Package checks verify local links, dependencies and file hashes. These checks cover tooling; actual language quality, rendering, builds and applicable release requirements need project evidence.
Invoke $game-localization in Codex or /game-localization in Claude Code; in Gemini CLI, ask it to use the game-localization skill. Claude Code and Gemini CLI support the skill format, but this package has not completed end-to-end evaluation in those hosts. Model capability and tool permissions affect execution.
The detailed references below are maintained in English and bundled locally. This localized guide covers installation and operation; technical field names, commands and file paths remain unchanged across editions.
- Workflow and recovery
- Translation and review
- Language and regional profiles
- Complex scripts and input
- Engine integration
- Formats and CLI contract
- Incremental updates and review returns
- Resource and scenario coverage
- Localization QA and accessibility
- Scoped compliance
- Developer report requirements
- Verification and example assets
Version 1.3.1