localization-patterns

localization-patterns is a skill for Claude Code from HermeticOrmus/LibreGameDev-Claude-Code. It costs 64 tokens per session (1,890 once invoked), scanned A, original, MIT.

Localization patterns for Godot, where localization means preparing a game or app's text and layout for multiple languages.

In plain words
What is it for?
Use them to mark text for translation, format numbers and plural messages, load PO translation files, respond to language changes, and adjust fonts for languages such as Japanese, Chinese, or Korean.
Why use it?
They help keep translated text, plural forms, locale changes, and language-specific fonts working correctly as the interface changes language.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the localization plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use them to mark text for translation, format numbers and plural messages, load PO translation files, respond to language changes, and adjust fonts for languages such as Japanese, Chinese, or Korean.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hermeticormus/libregamedev-claude-code/localization-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HermeticOrmus/LibreGameDev-Claude-Code --skill localization-patterns
Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreGameDev-Claude-Code

Made for: Claude Code.

Or install localization, the plugin that ships this one along with the rest of its 1 skill, 1 command, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for localization-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/hermeticormus/libregamedev-claude-code/localization-patterns/github.svg)](https://agentmods.dev/skills/hermeticormus/libregamedev-claude-code/localization-patterns)
Your own site
<a href="https://agentmods.dev/skills/hermeticormus/libregamedev-claude-code/localization-patterns"><img src="https://agentmods.dev/badge/skills/hermeticormus/libregamedev-claude-code/localization-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for localization-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/hermeticormus/libregamedev-claude-code/localization-patterns"><img src="https://agentmods.dev/badge/skills/hermeticormus/libregamedev-claude-code/localization-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,890 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.01890
Opus 5.5 $0.00026 $0.00756
Sonnet 5.5 $0.00013 $0.00378
Haiku 4.5 $0.00006 $0.00189

Measured 2mo ago against content hash 47fab7e6a790, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

localization-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/localization/skills/localization-patterns/SKILL.md · 208 lines

How it starts

The opening of the file, as written. The whole thing — 208 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Localization Patterns

Godot TranslationServer and tr() Usage

# Correct tr() usage patterns
class_name LocalizableUI extends Control

func _ready() -> void:
    # Static string - wrap in tr()
    $Label.text = tr("MENU_PLAY_BUTTON")

    # Dynamic string with variable - use format, not concatenation
    var score := 1500
    $ScoreLabel.text = tr("SCORE_DISPLAY") % score
    # PO file: msgid "SCORE_DISPLAY" msgstr "Score: %d"

    # Plural-aware string
    var item_count := 3
    $ItemLabel.text = tr_n("ITEM_COUNT_SINGULAR", "ITEM_COUNT_PLURAL", item_count) % item_count
    # PO file:
    # msgid "ITEM_COUNT_SINGULAR"
    # msgid_plural "ITEM_COUNT_PLURAL"
    # msgstr[0] "%d item"
    # msgstr[1] "%d items"

    # Listen for locale changes (font swaps, layout updates)
    TranslationServer.connect("locale_changed", _on_locale_changed)

func _on_locale_changed() -> void:
    # Refresh all translatable strings
    _ready()
    _update_fonts_for_locale()

func _update_fonts_for_locale() -> void:
    var locale := TranslationServer.get_locale()
    if locale.begins_with("ja") or locale.begins_with("zh") or locale.begins_with("ko"):
        $Label.add_theme_font_override(&"font", preload("res://fonts/NotoSansCJK.ttf"))
    elif locale.begins_with("ar") or locale.begins_with("he"):
        $Label.add_theme_font_override(&"font", preload("res://fonts/NotoSansArabic.ttf"))
        # Mirror layout for RTL
        layout_direction = Control.LAYOUT_DIRECTION_RTL
    else:
        $Label.remove_theme_font_override(&"font")
        layout_direction = Control.LAYOUT_DIRECTION_AUTO

PO File Structure

# messages.pot (template - generated, not translated)
# and messages.fr.po (French translation)

# Header - required, specifies plural rules
msgid ""
msgstr ""
"Project-Id-Version: MyGame 1.0\n"
"Language: fr\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"Content-Type: text/plain; charset=UTF-8\n"

# Simple string
msgid "MENU_PLAY_BUTTON"
msgstr "Jouer"

# Contextual disambiguation
msgctxt "main_menu"
msgid "BACK"
msgstr "Retour"

msgctxt "character_anatomy"
msgid "BACK"
msgstr "Dos"

# Plural forms
msgid "ITEM_COUNT_SINGULAR"
msgid_plural "ITEM_COUNT_PLURAL"
msgstr[0] "%d objet"
msgstr[1] "%d objets"

# String with variables (preserve format specifiers)
msgid "SCORE_DISPLAY"
msgstr "Score : %d"

# String with named variables (safer than positional)
msgid "PLAYER_GREETING"
msgstr "Bonjour, {player_name} !"

Read the full file on GitHub · 208 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +5 lines · +64 tokens per session 47fab7e6a790
  2. 3mo ago First seen · 203 lines · 0 tokens per session scan A 612cc83889ad

Subscribe to this mod's changes

localization-patterns is a skill published in the GitHub repository HermeticOrmus/LibreGameDev-Claude-Code (5 stars, last pushed 2mo ago), licensed MIT. It adds 64 tokens to every session and 1,890 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

localization-patterns compared with skills from other repositories

localization-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
localization-patternsHermeticOrmus/LibreGameDev-Claude-CodeSkill52mo agoMITA64Claude Code
godot-prompter-localizationbgrenat/godot-game-dev-studioSkill3121d agoLGPL-3.0A44Claude Code, Codex
studio-narrative-content-leadbgrenat/godot-game-dev-studioSkill3121d agoLGPL-3.0A33Claude Code, Codex
dialogue-systemsgamedev-skills/awesome-gamedev-agent-skillsSkill12k18d agoApache-2.0A96Claude Code
unity-cliAlex-Rachel/TEngineSkill2.4k12d agoMITA68Codex
localizationjame581/GodotPrompterSkill1.0ktodayMITA42Claude Code
luban-devAlex-Rachel/TEngineSkill2.4k12d agoMITA63Codex