Game Localization
ASecurityUse for any task that touches a game's translations or player-facing text - adding a string, a key or a language, wiring text through tr() or a string table, sending strings to translators or merging their files, or when translated text shows raw keys or placeholders, garbled characters, crashes a format call, overflows its label or uses the wrong plural form. Checks Godot CSV and .po/.pot, Unity Localization CSV exports, Unreal .po exports and key + locale CSVs without the engine - placehold...
- 3 stars
- 0 votes
- 0 copies
- 1 view
- Added November 29, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add flxnsee/gamedev-toolkit --skill game-localization --agent claude-codeAre you the author of Game Localization?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/flxnsee-game-localization)---
name: game-localization
description: Use for any task that touches a game's translations or player-facing text - adding a string, a key or a language, wiring text through tr() or a string table, sending strings to translators or merging their files, or when translated text shows raw keys or placeholders, garbled characters, crashes a format call, overflows its label or uses the wrong plural form. Checks Godot CSV and .po/.pot, Unity Localization CSV exports, Unreal .po exports and key + locale CSVs without the engine - placeholders that differ from the source ({0}, {name}, %s, %d), broken rich-text tags, translations much wider than the source, missing and fuzzy entries, duplicate or empty keys, unquoted commas that shift columns, non-UTF-8 files saved by Excel, Plural-Forms headers that are wrong for the language, .po files behind their .pot, Godot translations not registered in project.godot, and tr() keys no table defines.
license: MIT
compatibility: Python 3.10+, standard library only. No engine required.
metadata:
author: gamedev-toolkit
version: "0.1.0"
---
# Game localization
Translation bugs reach players because nobody reads every string in every language.
Most of them can be caught mechanically: a translator renamed `{name}` to `{nom}`, swapped
`%d` and `%s`, dropped a `[/b]`, or Excel saved the file in the wrong encoding.
## Run the checker
`${CLAUDE_SKILL_DIR}` is this skill's folder, where its scripts are. Run the commands from the
project folder as shown, without searching for the script. If the variable was not filled
in, use the base directory shown when the skill loaded.
```bash
python "${CLAUDE_SKILL_DIR}/scripts/loc_check.py" locale/ # every .csv/.tsv/.po/.pot below
python "${CLAUDE_SKILL_DIR}/scripts/loc_check.py" locale/ui.csv locale/fr.po # specific files
python "${CLAUDE_SKILL_DIR}/scripts/loc_check.py" . --code . # Godot: also check tr() keys in scripts
python "${CLAUDE_SKILL_DIR}/scripts/loc_check.py" locale/ --strict # release gate: missing/fuzzy = error
python "${CLAUDE_SKILL_DIR}/scripts/loc_check.py" locale/ --json
```
Exit code `0` = no errors, `1` = errors, `2` = no translation files found. `--source fr` picks
the source column when it isn't `en`; `--max-ratio 1.3` tightens the length check (default
1.5, `0` = off). Each finding names the file, the key and the problem. Errors break the game
or the file; warnings are usually real; `info` findings (`length-ratio`, `same-as-source`,
unused keys) are worth a look and often fine.
## Fixing findings
1. **Fix the translation, not the source**, unless the source string itself is wrong.
Placeholders are code: copy them exactly, only move them inside the sentence. For `%`
placeholders that must change order, switch both source and translations to positional
(`%1$s`) or named (`{name}`) placeholders, and confirm the engine call supports them.
2. **Don't fill missing translations with machine translation silently.** Ask the user
first. If they agree, mark the entries for review (`#, fuzzy` in PO, or a comment column
in CSV) so a translator checks them.
3. Report coverage per locale (the header lines), then the errors.
4. Re-run until it exits 0. Use `--strict` as the release check in CI.
## Rules for agents writing localizable code
1. **Never build sentences by concatenating translated pieces** (`tr("You have") + str(n) + tr("coins")`).
Word order differs between languages. Use one string with placeholders.
2. Prefer **named placeholders** (`{player}`) over positional ones: translators can reorder them.
3. Plurals need the engine's plural API (`tr_n`, Smart Strings `plural`, FText `|plural(...)`),
not `if n == 1`. Many languages have more than two forms.
4. Give ambiguous short strings a context (`"Close"` the verb vs the adjective).
5. Keep text out of textures and code constants. New keys go into the table; then run the
checker with `--code` to confirm every key exists.
6. Before adding a language, check that the font has its glyphs (CJK, Cyrillic, accents).
## Reference
- [references/engines.md](references/engines.md): Godot 4 CSV and gettext, the Unity
Localization package's CSV round trip, and Unreal's Localization Dashboard. Read it when
setting up or changing an engine's translation pipeline.
Files in this skill
- SKILL.md
- scripts/loc_check.py
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.