i18n-extract

i18n-extract is a command for Claude Code from sigistry/marketplace. It costs 17 tokens per session (909 once invoked), scanned A, original, MIT.

A command that finds hardcoded text shown to users, adds it to the project's translation catalog, and replaces the text in code with translation calls.

In plain words
What is it for?
Use it when preparing components or a code change for multiple languages, especially during an internationalization retrofit.
Why use it?
It removes the manual work of deciding what needs translation while preserving variables and the project's existing internationalization style.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: model in frontmatter.

Part of the a11y-i18n-remediator plugin — 3 skills, 5 commands, 2 agents, 1 hook shipped together

Good fit Use it when preparing components or a code change for multiple languages, especially during an internationalization retrofit.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sigistry/marketplace/i18n-extract
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.

Clone the repo
git clone --depth 1 https://github.com/sigistry/marketplace

Made for: Claude Code.

Or install a11y-i18n-remediator, the plugin that ships this one along with the rest of its 3 skills, 5 commands, 2 agents, 1 hook.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/sigistry/marketplace/i18n-extract"><img src="https://agentmods.dev/badge/commands/sigistry/marketplace/i18n-extract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 909 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.00017 $0.00909
Opus 5 $0.00009 $0.00454
Sonnet 5 $0.00003 $0.00182
Haiku 4.5 $0.00002 $0.00091

Measured 10d ago against content hash 0fc35f9aca88, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

i18n-extract 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 10d 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/a11y-i18n-remediator/commands/i18n-extract.md · 44 lines

How it starts

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

Find the hardcoded user-facing strings in the components at $ARGUMENTS (or the current diff), extract them into the project's translation catalog, and replace each literal with the framework's idiomatic translation call. This is the tedious, error-prone part of an i18n retrofit that CLIs do badly, deciding what is actually user-facing, generating stable keys, and preserving interpolation. This command dispatches the i18n-extractor agent and reads the catalog-hygiene skill's framework conventions.

Process

Step 1: Detect the i18n framework and catalog layout

Read the manifest and existing catalog to learn the conventions (see the skill's references/catalog-frameworks.md):

Framework Signal Call idiom Catalog
react-i18next i18next, useTranslation t('key'), <Trans> locales/<lng>/<ns>.json
react-intl / FormatJS react-intl intl.formatMessage, <FormattedMessage> extracted .json per locale
vue-i18n vue-i18n $t('key'), t('key') <lang>.json / messages
next-intl next-intl useTranslations, t('key') messages/<locale>.json
i18next (vanilla) i18next i18next.t('key') <lng>/translation.json
Angular i18n @angular/localize, i18n= i18n attr / $localize messages.<locale>.xlf
gettext .po/.pot, gettext, _() _('text'), ngettext <locale>/LC_MESSAGES/*.po

If no i18n library is present, report that and propose one for the stack rather than inventing calls.

Step 2: Find hardcoded user-facing strings, and skip the rest

Scan JSX/template text nodes, alt/title/aria-label/placeholder attributes, and string literals passed to UI. Extract visible copy, button labels, headings, validation messages, and accessible-name attributes. Skip non-UI strings, object keys, enum values, URLs, routes, className/CSS, data-testid, console.*/logger messages, test fixtures, and code-only identifiers. When a string is ambiguous, mark it "review" rather than extracting blindly.

Read the full file on GitHub · 44 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. 10d ago First seen · 44 lines · 17 tokens per session scan A 0fc35f9aca88

Subscribe to this mod's changes

i18n-extract is a command published in the GitHub repository sigistry/marketplace (3 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 909 once invoked, about $0.0001 per session on Opus 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.