localization
Skill1 starsChanged yesterdayApache-2.0View on GitHub
Use when a Godot game shows text players read and will ship in more than one language, when adding translations, plurals, Arabic or Hebrew, Chinese, Japanese or Korean, or when translated text is cut off, shows boxes instead of letters, or appears as the raw key.
21 other projects use a version of this.
Adopted by
Most recently taken up by
- mirzaaghazadeh/unity-meta-quest-skillstheir own version, first seen Nov 15, 2026
- parker-brown-family/agent-skillstheir own version, first seen Nov 8, 2026
- AnyOrgName/php-skillstheir own version, first seen Nov 8, 2026
- ghuntley/loomtheir own version, first seen Nov 1, 2026
- jame581/GodotPromptertheir own version, first seen Oct 21, 2026
- PhoenixNest/AGENT-GLOBAL-BASEtheir own version, first seen Oct 20, 2026
Used with
Projects with it also use testing.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
NVIDIASkilltesting
Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.
Also in 3 projects that use this
Other versions21 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 21
- chen08209/FlClash★ 66ksame name
- ghuntley/loom★ 1.7ksame name
- igorescodro/alkaa★ 1.6ksame name
- jame581/GodotPrompter★ 965same name
- bagofwords1/bagofwords★ 464same name
- CamilleScholtz/swmpc★ 241same name
- everpcpc/KMReader★ 126same name
- glrodasz/dotfiles★ 20same name
- aaronbrethorst/claude-skills★ 4same name
- AnyOrgName/php-skills★ 4same name
11 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- algorithmsSkill
- animationSkill
- anti-cheatSkill
- asset-pipelineSkill
- automation-hooksSkill
- calendarSkill
- cameraSkill
- console-certSkill
- debug-toolsSkill
- determinismSkill
- game-aiSkill
- game-audioSkill
- game-dataSkill
- game-designSkill
- game-juiceSkill
- game-planSkill
- game-playtestSkill
- gameSkill
- game-telemetrySkill
- godot-addonsSkill
- godot-diagnoseSkill
- godot-editor-bridgeSkill
- godot-export-releaseSkill
- godot-pitfallsSkill
- godot-shaders-vfxSkill
- godot-test-loopSkill
- inputSkill
- kit-reviewSkill
- kitSkill
- legalSkill
- llmSkill
- lookSkill
- mathSkill
- mobile-webSkill
- moddingSkill
- multiplayerSkill
- narrativeSkill
- new-gameSkill
- patternsSkill
- performanceSkill
- procgenSkill
- progressionSkill
- release-readinessSkill
- retroSkill
- savesSkill
- serversSkill
- steamSkill
- store-pageSkill
- typographySkill
- ui-accessibilitySkill
- ui-flowsSkill
- verify-before-doneSkill
- weekly-reviewSkill
- xrSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 19 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Every visible string goes through a key, every key has a translation in every shipped language, and the screens still fit and draw when the …
- Very specific: line 152
Test it without a translation: GetTree().Root.SetLayoutDirection(Window.LayoutDirection.Rtl).
- Very specific: line 159
Start in the system language when it is shipped (TranslationServer.SetLocale(OS.GetLocaleLanguage())), let the player change it in …
“Common” is measured: kept by at least 6 in 10 of the 19 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Localization in Godot 4
Every visible string goes through a key, every key has a translation in every shipped language, and the screens still
fit and draw when the language changes. The kit checks the tables and their characters against the fonts (the l10n
runner) and the screens (shot -Locale/-Pseudo). Sources and test results: ${CLAUDE_PLUGIN_ROOT}/docs/localization.md.
Choose the languages at concept.decisions and keep the l10n runner green from the first milestone, not as a late
port ("At Google, we always try to launch products globally.", Tatsuo Nomura, Untold History).
1. Keys and calls
- Labels and buttons translate their own
Text(auto_translate_modeinherits "always" from the root): put the key in the scene,PLAY_BUTTON, not "Play". Nodes showing player names or numbers setAutoTranslateMode = Disabled. - In code:
Tr("KEY"),Tr("Close", "door")for a context,TrN("ONE_APPLE", "MANY_APPLES", n)for plurals.atr/Atrfollow the node's own auto-translate mode. - Whole sentences with placeholders, never glued fragments: word order differs between languages.
string.Format(Tr("SCORE_FMT"), score)with{0}in the table, or.Replace("{score}", ...)for named ones. - Plurals with
TrN, nevern == 1 ? A : B: Polish has three forms for whole numbers, Arabic six, Japanese one. - A key built at run time (
Tr($"LEVEL_{i}")) cannot be checked: list the keys it can produce in a comment table, or look them up from data that names them. - Text drawn with
DrawStringor put in aRichTextLabelby code is not auto-translated: pass it throughTr. - Variants of one line (player gender, age) are contexts of the same key,
Tr("WELCOME", "female"), not new keys. Add one only to lines where some language needs it (Destiny branched a line if even one language needed a female form); each language then fills it, repeating the text where it needs no difference. A context no table has returns the raw key, not the plain line (4.7.2). - In debug builds, print the key when a line of dialogue or a subtitle is shown (
GD.Print($"[l10n] {key}")), so a tester's log or recording names the row to fix. After bot, soak and playtest runs, list the dialogue keys never logged: that is the coverage, and a line that never plays is often set up wrong (Horizon Zero Dawn's contextual NPC lines, Guerrilla's QA manager, GDC).
2. Tables: CSV or gettext
CSV (keys,en,fr,...) | gettext (.po per language) | |
| Who edits | You, a spreadsheet | Translators and their tools (Poedit, Weblate, Crowdin) |
| Context, plurals | ?context and ?plural columns, a ?pluralrule row (Godot 4.6+); other forms on the next rows with an empty key | msgctxt, msgid_plural, msgstr[n] with a Plural-Forms header |
| Import | Makes <name>.<locale>.translation beside the CSV | Loaded as is |
| Notes for translators | Columns whose header starts with _ | #. comments |
- CSV and PO files are UTF-8 (a BOM is skipped). Godot reads a UTF-16 table as no translation at all and a Big5 or
Windows code-page one as U+FFFD boxes; the gate below fails both. Quote a CSV cell with a comma, newline or
"and double the inner". The delimiter is an import option (comma, semicolon or tab). - Register every table in Project Settings > Localization > Translations
(
internationalization/locale/translations). Commit the.csv.import; the.translationfiles are made by the import. - Godot skips a PO entry after any
#comment containing the word "fuzzy", not only#, fuzzyflags. - An empty cell or a missing entry falls back to
internationalization/locale/fallback(defaulten), then shows the key itself. Players seeMENU_PLAY, so the gate below fails on both. - The editor's POT generation has no command line in 4.7; the
l10nrunner reads keys from the code itself.
3. The gate: tables complete
The l10n runner (picked automatically when a project has translation CSVs, .po files or translation remaps) fails on
duplicate keys (same key and context twice), untranslated entries (an empty cell, a fuzzy or empty PO entry, fewer plural
forms than the language needs), keys in tr/Tr/TrN/atr calls that no table has, text over its length limit, tables
that are not UTF-8, characters no font has (missing glyphs, section 6), and the remaps and voice of section 4:
pwsh ${CLAUDE_PLUGIN_ROOT}/ci/godot/hyperdot.ps1 test -Runners l10n -Json -QuietLength limits, set before translation starts from the box each text must fit, live in CSV columns Godot's import skips
(any header starting with _):
| Column | Limit |
_max | characters, for every language |
_max_<locale> (_max_ja, _max_pt_BR) | characters for that language, instead of _max; _max_pt covers pt_BR too |
_lines | lines (\n in a cell is a line break) |
The too long case lists key, language, length and limit. Characters are what a reader counts: an accented letter typed
as two code points, or an emoji sequence, is one; line breaks are not counted. PO files have no limits.
4. Voice and pictures per language: translation remaps
- Project Settings > Localization > Remaps (
internationalization/locale/translation_remaps): a source resource (res://voice/en/l01.ogg) and one file per locale, each saved aspath:locale. Code and scenes use the source path; Godot loads the current locale's file instead, and reloads it when the locale changes. - Same file name, one folder per locale (
voice/fr/l01.ogg): each pair is plain to read and to check. - Text painted into art (signs, posters) stays in one language unless remapped. Never let it carry what the player needs (a "this way" sign: use the HUD, a voice line or an icon), never make a symbol of an English initial (Destiny's "U" for the Underwatch: translated names start with other letters), and check what dirt or a decal over a few letters spells.
- A target that does not exist only warns at run time and plays the source; a target without
:localeis never used. Thetranslation remapscase fails on both. - The
localized audiocase compares each sound with its source, with ffmpeg (skipped with a warning without it): the same sample rate, channels and bit depth, 0.5 to 2 times the length, integrated loudness within 2 LU. A line is rarely the source's length; for lip-synced lines, narrow the range inl10n.json(voiceDurationMin,voiceDurationMax). Fix a loud or quiet language at mastering, the same target for all, not with a bus. - Godot 4.7.2 imports only plain PCM or float WAVs: a 24-bit WAV saved as WAVE_FORMAT_EXTENSIBLE (ffmpeg's default for 24-bit) fails to import with "not PCM".
5. The gate: screens fit and draw
pwsh ${CLAUDE_PLUGIN_ROOT}/ci/godot/hyperdot.ps1 shot -Scene res://ui/Menu.tscn -Resolution 1920x1080 -Locale de,ar,ja -Pseudo -Json -QuietEach scene is taken again in each language (Menu.de.png), and -Pseudo adds a pass that is accented, 40% longer and
bracketed: [_Ĥéłłô_]. Text with no brackets on screen was never translated (a hard-coded string); a missing ] was cut
off. After each picture the visible labels and buttons are checked, and any problem fails the run with shot-text:
problem | Meaning | Fix |
cut off | A clipped or trimmed label or button is narrower than its text, or a wrapped label shows fewer lines | Let containers size it, wrap it, or give it room; German and Finnish run about 30% longer |
off screen | Part of the text is outside the window | Anchor it inside a container |
missing glyphs | None of the control's fonts has these characters | Add a fallback font (below) |
missing glyphs is the check a picture cannot make: the default font has system fallback on, so this machine draws CJK
and Arabic from its own fonts and a player's may not. Look at the pictures too (look). The l10n runner's
missing glyphs covers every string, shown or not.
6. Fonts, scripts and punctuation
- Godot's default font (Open Sans SemiBold) covers Latin, Cyrillic, Greek and Hebrew; it has no Chinese, Japanese, Korean, Arabic or emoji.
- Ship the fonts: a project font with
Fallbacks(Noto Sans CJK, Noto Naskh Arabic; SIL Open Font License) in the theme (gui/theme/customorgui/theme/custom_font). ASystemFontresolves on the player's machine, so it is no guarantee. SetAllowSystemFallback = falseon shipped fonts while testing so this machine looks like a player's. - The
l10nrunner'smissing glyphscase checks every character of every translation (placeholders, BBCode tags and whitespace aside) against the default font (themedefault_font, elsegui/theme/custom_font, else Godot's) and every font of a.trestheme, with fallbacks:ja: res://fonts/latin.tres (default font) has no 始 U+59CB, 開 U+958B (in 'TITLE'). Fix: a fallback font with those characters. Characters only aSystemFontcould draw are asystem-fontwarning. A font that never draws translated text (digits only) goes inl10n.json:{ "glyphIgnoreFonts": ["res://fonts/digits.tres"] }. Fonts set on one node are left toshot -Locale. - Thai, CJK, Khmer and other scripts break lines with dictionary data: export with
internationalization/locale/include_text_server_data = true(about 4 MB). - Chinese is two locales, translated apart and named by script:
zh_CNandzh_TW(orzh_Hans,zh_Hant). Godot gives zh_HK the Traditional table and zh_SG the Simplified one. A converter is no translation (words differ between China, Taiwan and Hong Kong), and "Chinese" alone in a store page or menu says nothing. A plainzhcolumn or.pois achinese-without-scriptwarning from the gate. - CJK letters are denser: a size still readable in Latin can blur in Chinese, and one point size is not one height
across scripts. Look at the smallest text with
shot -Locale zh_TW, not only at the pseudo pass. Keep one family per style down the fallback chain: a serif CJK fallback under a sans Latin font looks broken even to non-readers. - Letter spacing (
FontVariation.SpacingGlyph) stays at 0 or above for running text, and text boxes in fixed art keep room above and below the letters for stacked accents.Label.Uppercasewidens text: pseudo-test with it on.
Punctuation and spaces
The English source text and table use real marks (’ “ ” – — … × −, one ellipsis character, a non-breaking space inside
Level 3 and 10 HP, one space after punctuation, at most one !), per typography (punctuation.md). The rules are
English ones: each language has its own quotation marks, dashes and spacing, so a translator sets those and nobody
converts them by rule. Keep the marks in the table, not concatenated in code, check that every font in the chain has them
(missing glyphs), and keep translated strings in the same case as the source (Label.Uppercase capitalises on display).
7. Right-to-left
TranslationServer.SetLocale("ar")mirrors Control layouts that inherit their direction: containers reverse, anchors and left/right alignment swap. Sprites and the game world do not mirror.- Test it without a translation:
GetTree().Root.SetLayoutDirection(Window.LayoutDirection.Rtl). The project settingforce_right_to_left_layout_directiondoes not apply when run from the editor binary. - Arrows, progress bars and "next" icons that mean a direction need a mirrored variant; numbers and clocks do not flip.
- Arabic letters join only with the Advanced text server (the default;
internationalization/rendering/text_driver).
8. Language selection
- Start in the system language when it is shipped (
TranslationServer.SetLocale(OS.GetLocaleLanguage())), let the player change it in settings, and save that choice with the settings, not in the save game. - Each language's name in its own language in the menu:
TranslationServer.GetLocaleNamegives English names. --language fron the command line starts the game in that locale: one CI run per language.
9. Pseudolocalization in the game
TranslationServer.PseudolocalizationEnabled = true at run time (sub-options: ProjectSettings.SetSetting then
TranslationServer.ReloadPseudolocalization()). It protects %s/%d but accents {name}, so a string formatted with
named placeholders shows {šćôŕé} under pseudo: use {0} or %d in strings, or ignore that one artefact.
Plural (TrN) strings are not pseudolocalized.
10. Prove it
- the
l10nrunner passes: no duplicate, untranslated, unknown or too long keys, no missing glyphs, and nosystem-fontwarning for a shipped language - every text in a fixed box has
_max(and_lines) in its row - every remap target exists, and
localized audiopassed rather than skipped (ffmpeg installed in CI) shot -Pseudoshows every visible string bracketed and none cut offshot -Localewith the longest language (often German), an RTL one and a CJK one reports noshot-text- a test sets each shipped locale and checks
TranslationServer.Translatereturns no raw key for the menu's keys - the settings menu changes the language at run time and the choice survives a restart
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

