canon-i18n

canon-i18n is a skill for Claude Code, Codex from Dragoon0x/canon. It costs 60 tokens per session (1,159 once invoked), scanned A, original, MIT.

A set of rules for preparing software to support multiple languages and regional formats.

In plain words
What is it for?
Use it to externalize interface text, create translation keys, handle plurals and locale-aware formatting, avoid sentence concatenation, and test layouts with expanded or pseudo-translated text.
Why use it?
It reduces layout breakage and translation work by keeping text separate from code and allowing for different word lengths and grammar.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to externalize interface text, create translation keys, handle plurals and locale-aware formatting, avoid sentence concatenation, and test layouts with expanded or pseudo-translated text.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dragoon0x/canon/canon-i18n
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 Dragoon0x/canon --skill canon-i18n
Clone the repo
git clone --depth 1 https://github.com/Dragoon0x/canon

Made for: Claude Code, Codex.

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 canon-i18n

README.md
[![agentmods](https://agentmods.dev/badge/skills/dragoon0x/canon/canon-i18n/github.svg)](https://agentmods.dev/skills/dragoon0x/canon/canon-i18n)
Your own site
<a href="https://agentmods.dev/skills/dragoon0x/canon/canon-i18n"><img src="https://agentmods.dev/badge/skills/dragoon0x/canon/canon-i18n/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 canon-i18n

Your own site · 80×15
<a href="https://agentmods.dev/skills/dragoon0x/canon/canon-i18n"><img src="https://agentmods.dev/badge/skills/dragoon0x/canon/canon-i18n.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,159 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.00060 $0.01159
Opus 5.5 $0.00024 $0.00464
Sonnet 5.5 $0.00012 $0.00232
Haiku 4.5 $0.00006 $0.00116

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

Security

Grade A, and why

canon-i18n 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.

source/skills/canon-i18n/SKILL.md · 132 lines

How it starts

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

CANON · Internationalization

I18n is preparing the codebase so that adding a new language doesn't require rewriting the UI. L10n is the act of adding one.

Externalize all strings

No user-visible string lives in source code. Every string goes through a translation function.

// Bad
<button>Save changes</button>

// Good
<button>{t('actions.save_changes')}</button>

Keys are structured, not sequential: actions.save_changes not string_47.

Text expansion

German is 30–40% longer than English. Finnish, Russian, and Arabic can be longer still. Japanese and Chinese are often shorter.

Language Expansion vs English
German +30–40%
French +15–25%
Russian +20–30%
Japanese -20–30%
Arabic +20–30%

Design for 40% expansion. If a label barely fits in English, it breaks in German.

Test with pseudo-localization: replace strings with accented, expanded versions ([Ŝàvé çhàñgéŝ!!!!]) to catch overflow before real translations arrive.

Never concatenate strings

// Bad — word order varies by language
`Welcome, ${name}. You have ${count} messages.`

// Good — use ICU message format
t('welcome', { name, count })
// en: "Welcome, {name}. You have {count, plural, one {# message} other {# messages}}."
// ja: "{name}さん、{count}件のメッセージがあります。"

Concatenation assumes English word order. Interpolation with named variables lets translators reorder.

Pluralization — ICU MessageFormat

English has 2 plural forms (singular, plural). Arabic has 6. Polish has 4. Use ICU {count, plural, ...} for every countable string.

{count, plural,
  =0 {No messages}
  one {# message}
  other {# messages}
}

Libraries: intl-messageformat, i18next with ICU plugin, FormatJS.

Date, time, number formatting

Use Intl APIs. Never manually format.

new Intl.DateTimeFormat('de-DE', { dateStyle: 'long' }).format(date);
// "18. April 2026"

new Intl.NumberFormat('en-IN').format(1234567);
// "12,34,567"
  • Dates: Intl.DateTimeFormat. Month/day order varies by locale.
  • Numbers: Intl.NumberFormat. Thousands/decimal separators vary.
  • Currency: Intl.NumberFormat with style: 'currency'. Symbol position varies.
  • Relative time: Intl.RelativeTimeFormat. "3 days ago" / "vor 3 Tagen".

Read the full file on GitHub · 132 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 First seen · 132 lines · 60 tokens per session scan A 2f3763c767c1

Subscribe to this mod's changes

canon-i18n is a skill published in the GitHub repository Dragoon0x/canon (6 stars, last pushed 6mo ago), licensed MIT. It adds 60 tokens to every session and 1,159 once invoked, about $0.0002 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

canon-i18n compared with skills from other repositories

canon-i18n next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
canon-i18nDragoon0x/canonSkill66mo agoMITA60Claude Code, Codex
ttb-skill-audittqtuan1201/TTBaseUIKitSkill233mo agoMITA26Claude Code, Codex
ios-localizationdpearson2699/swift-ios-skillsSkill1.3k3mo agononeA127Claude Code
natural-languagedpearson2699/swift-ios-skillsSkill1.3k3mo agononeA63Claude Code
swift-formatstyledpearson2699/swift-ios-skillsSkill1.3k3mo agononeA74Claude Code
accessibilitydiegosouzapw/awesome-omni-skillsSkill1704mo agoMITC119Claude Code, Codex
chinese-documentationjnMetaCode/superpowers-zhSkill8.5k11d agoMITA62Claude Code