Skip to content
Back to skills

Game Localization

ASecurity

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

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
developmentpythongobashapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add flxnsee/gamedev-toolkit --skill game-localization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Game Localization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Game Localization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/flxnsee-game-localization/badge)](https://www.skillsdirectory.com/skills/flxnsee-game-localization)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md6.9 KB
  • scripts/loc_check.py32.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.