i18n-LE

io.github.nolindnaidoov1.0.0Updated Oct 4, 2026

Audit translation catalogues: missing keys, broken placeholders. Never returns a translation.

VerifiedSTDIODesktop onlyDeveloper ToolsFiles & Storage

Overview

AI-generated overview

Audits translation catalogues for missing keys, broken placeholders and structural mismatches, returning findings as data without ever returning a translated…

What it does
Exposes one tool, check_catalogues, which takes catalogue contents plus the i18n library name and reports problems: missing or extra keys, dropped or renamed placeholders, constructs from another library's convention, duplicate keys, structure mismatches, empty values and untranslated entries. It returns the same report the editor extension renders, capped at 500 findings by default with a truncation flag. It reads no files and makes no network requests.
When to use it
Use it before a release to judge whether a locale is shippable, after machine translation to catch placeholders whose names were translated, or when reviewing a translator's pull request without reading the translations themselves.
Requirements
Runs locally over stdio via npx i18n-le-mcp, or installed globally with npm. Needs Node.js. No environment variables, API key or configuration. The caller must supply the catalogue contents and the library name, since the tool cannot inspect the project.
Before you install
The tool takes catalogue contents as an argument and returns findings; it does not read files or make network requests. Reports never contain translated strings, though keys are shown and a key may itself be an English sentence. It rewrites nothing.

Installation

In SourceWeft

  1. Open i18n-LE in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

[i18n-LE Logo]

i18n-LE: The Locale That Only Looks Finished

Audit translation catalogues against the source locale, in one keystroke
i18next, next-intl, VS Code bundles and Flutter ARB — keys and tokens, never a translated string

[Install from VS Code Marketplace] [Open VSX downloads] [i18n-le-mcp on npm] [i18n-le on crates.io] [LE Tools]


Useful? A star or rating is how other developers find it — ★ GitHub · ★ Open VSX · ★ Marketplace

What it does

Spanish shipped last week and the metrics screen has said {{periodo}} to every user since. The catalogue had every key. It parsed. The placeholder came back from machine translation with its name translated too, which compiles perfectly and renders the literal.

Open a catalogue, press Ctrl+Alt+L (Cmd+Alt+L on Mac), and the set it belongs to is audited against the source locale: keys a locale is missing or has too many of, placeholders dropped or renamed in translation, constructs from another library's convention, values left empty, keys defined twice, and a path that is an object in one locale and a string in another. The report opens beside the editor. From the Explorer, run it on any folder. Works in VS Code and in VS Code–based editors like Cursor and VSCodium (installable from Open VSX).

  • Before a release — is this locale shippable, or does it only look like it is?
  • After machine translation — {{timeframe}} that came back as {{periodo}}, caught by its token names
  • Reviewing a translator's pull request — the keys that changed shape, without reading the translations

The report never contains a translated string. It names keys, placeholder tokens, counts and shapes; an untranslated string is proved by being byte-identical to the source, not by being shown. It rewrites nothing.

Install

WhereWhat you getInstall
VS CodeThe audit, in your editor, on a keystrokeMarketplace
Cursor, VSCodium, WindsurfThe same extensionOpen VSX
A terminal or a CI stepThe same audit, with an exit codecargo install i18n-le · crates.io
Any MCP agent, via Nodecheck_catalogues over stdionpx i18n-le-mcp · npm
ZedThe MCP server as a context serveradd it by hand (no listing yet)

It works out which library you use first

{name} is a placeholder in next-intl and literal text in i18next; {{ name }} is an i18next variable and an ICU literal brace around a word. No amount of looking at the bytes settles that, so the library is identified before a catalogue is read, and the placeholder grammar, the plural model and which keys are metadata all come from the answer.

Five kinds of evidence, and two agreeing is an identification: a manifest dependency (package.json, pubspec.yaml), a config file, the directory layout, the catalogue's own syntax, and call sites in source. An ARB file's @@locale beside @key metadata settles it alone. When nothing agrees, or two libraries do, it refuses and names what it found rather than picking one. Set i18n-le.library to skip identification.

LibraryPlaceholdersPluralsLayouts
i18next{{name}}, $t(key) nestingkey_one / key_other suffixeslocales/<locale>.json, locales/<locale>/<namespace>.json
next-intlICU {name}, {count, plural, …}inside the messagemessages/<locale>.json
vscode-l10n{0}nonel10n/bundle.l10n.<locale>.json, package.nls.<locale>.json
flutter-arbICU, with @key metadatainside the message<prefix>_<locale>.arb

A VS Code extension's package.nls.json sits at the root while its translations live elsewhere; that split is read as one set. Source files are read only to answer which library this is, never for a finding.

What it finds

KindSeverityWhat
missing-keyerrorIn the source, absent from the target
extra-keyerrorIn the target, absent from the source
placeholder-count-mismatcherrorA placeholder was dropped or added
placeholder-name-mismatcherrorSame count, different names — {{timeframe}} came back as {{periodo}}
placeholder-style-mismatcherrorWritten in a style this library does not read, where the source had a real placeholder
convention-mismatcherrorA construct from another convention — ICU, Fluent, printf, ${…}, $t() — that the loader renders verbatim
duplicate-key-within-fileerrorA key defined twice; every loader keeps the last
structure-mismatcherrorAn object in one locale and a string in another — the one a flatten-and-compare test misses
empty-valuewarningEmpty or only whitespace
untranslatedinfoByte-identical to the source

One catalogue is the contract, never the union of all of them — a union would turn one translator's typo into a missing key for everyone else. It is the one English catalogue, or the one i18n-le.source names. Plural categories are folded onto their base key, so Polish's legitimate _few is not an extra key; plural-category completeness is deliberately not checked.

Use it from an AI agent

The same engine runs as an MCP server, so an agent can call it directly instead of being handed twenty-five catalogues to diff itself.

EditorHow
VS Code 1.101+Nothing to install — the extension registers check_catalogues with agent mode
ZedNo listing yet — add the MCP server by hand
Claude Codeclaude mcp add i18n-le -- npx -y i18n-le-mcp
Cursor, Windsurf, anything elsepoint it at npx i18n-le-mcp
check_catalogues(library, files, source?, keysAreSource?, maxResults?)

The tool takes catalogue contents and the library's name — it cannot see the project, so it cannot identify the library and does not guess. It returns the same report the editor renders, as data, capped at 500 findings by default with meta.truncated. It reads no files and makes no network requests. Published as i18n-le-mcp on npm and as io.github.nolindnaidoo/i18n-le in the MCP registry. It answers exactly as the Rust CLI's server does: one corpus runs against both, and a differential test feeds both thousands of generated catalogue sets — broken ones included, where both report the parser's own words and position — and compares every answer.

Configuring it by hand — any host with an MCP config file
json
{  "mcpServers": {    "i18n-le": {      "command": "npx",      "args": ["-y", "i18n-le-mcp"]    }  }}

Or install it once with npm install -g i18n-le-mcp and point at i18n-le-mcp. It needs no environment variables, no API key and no configuration of its own. To check it:

bash
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | npx -y i18n-le-mcp

The CLI

The same audit runs from a terminal or a CI step: a Rust CLI in crate/, sharing one corpus with the extension — crate/fixtures/ — so the two can never read a catalogue differently.

[i18n-le in a terminal]

bash
i18n-le locales/                       # the set in that directory, as one JSON reporti18n-le --system vscode-l10n l10n/     # name the library, skip identificationi18n-le --fail-on untranslated locales/i18n-le mcp                            # the same audit over MCP on stdio

Exit codes are the API — 0 clean, 1 findings, 2 the question was malformed (no library identified, two identified, no single source). Finding no catalogues at all is 0: there is nothing to be wrong with.

Commands

CommandDescription
i18n-LE: Audit Catalogues (Ctrl+Alt+L / Cmd+Alt+L)Audit the set the active catalogue belongs to, or the folder picked in the Explorer
i18n-LE: Open SettingsOpen i18n-LE settings
i18n-LE: Help & TroubleshootingBuilt-in documentation

Settings

SettingDefaultDescription
i18n-le.libraryautoThe library that wrote the catalogues; auto identifies it from the project
i18n-le.source""The catalogue every other is measured against, as a file name or a language tag; empty uses the one English catalogue
i18n-le.keysAreSourcefalseThe key is the English string, as in a VS Code bundle.l10n.json; the layout normally decides this
i18n-le.openResultsSideBySidetrueOpen the report beside the current editor
i18n-le.copyToClipboardEnabledfalseAlso copy the report to the clipboard
i18n-le.notificationsLevelsilentall = every notification, important = warnings + errors, silent = errors only
i18n-le.statusBar.enabledtrueShow the status bar item
i18n-le.telemetryEnabledfalseLocal-only event log (see Privacy)

Languages

Twelve languages besides English:

German · Spanish · French · Indonesian · Italian · Japanese · Korean · Portuguese (Brazil) · Russian · Ukrainian · Vietnamese · Chinese (Simplified)

Both halves are covered — the manifest (command titles, setting names and descriptions) and everything shown while the extension runs (notifications, the status bar and the report's headings). A refusal's reason is the engine's English, identical to the CLI's.

Privacy & security

  • No network access. The extension never sends data anywhere. The telemetryEnabled setting only writes events to a local Output Channel you can inspect (i18n-LE).
  • No translated value ever reaches a report, a notification or the MCP boundary. Keys are the deliberate exception, and where a layout makes the key the English sentence, that English is shown.
  • The MCP server holds the same line. It takes content as an argument and returns data: no filesystem access, no network calls, no telemetry. check:mcp-bundle fails the build if a translation reaches its stdout.
  • Error notifications redact home directories and credential-shaped fragments.

Documentation

WhatWhere
What the tool is allowed to say — checks, identification, refusals, the privacy boundarycrate/SPEC.md
How the extension is built and held together — architecture, invariants, toolchain, releaseAGENTS.md
How the CLI is built and held togethercrate/AGENTS.md
What changedCHANGELOG.md · crate/CHANGELOG.md
The tool's page, and the other fifteenletools.dev/tools/i18n-le

Performance

InputSizeFoundTimeRateScan speed
i18next, 25 locales2.83 MB48,00092.53 ms518,733/sec30.6 MB/s
next-intl ICU, 2 locales3.59 MB20,00047.75 ms418,877/sec75.2 MB/s
VS Code bundle, 12 locales0.91 MB2,00419.3 ms103,839/sec46.9 MB/s

Median of 7 runs after warmup, on Apple M5 Pro, 24 GB RAM, Node 24.3.0. Inputs are generated by scripts/benchmark.ts rather than checked in, so the sizes above are exactly what was measured. Reproduce with bun run benchmark.

These are machine-specific and are not asserted in CI — a benchmark that gates a build only tells you how busy the runner was.

Testing

MetricCoverage
Statements89.83%
Branches82.92%
Functions95.97%
Lines92.42%

209 test cases across 12 files, plus an integration suite that runs in a real VS Code extension host and an end-to-end test that installs the built .vsix into a clean profile.

Generated from a real run — coverage/coverage-summary.json and coverage/test-results.json — by scripts/coverage-readme.js; CI fails if this section drifts. Reproduce with bun run test:coverage, and the case count is the one vitest prints.

More from the LE family

Sixteen single-purpose tools for the work in front of every model. Each ships a Rust CLI and an MCP server. One page: letools.dev

Get it out

  • String-LE — Extract every string in a codebase, with its position, so a person can read them
  • Numbers-LE — Extract every hardcoded number in a codebase, so a person can check them
  • Units-LE — Extract every quantity with its unit, normalized, and refuse the ambiguous ones by name
  • Dates-LE — Extract every date and timestamp, and the exact instant each one resolves to
  • IDs-LE — Extract every UUID, ULID, NanoID, ObjectId and Snowflake, and decode the time inside
  • IPs-LE — Extract every IP address, CIDR block and MAC, normalized and classified by scope
  • URLs-LE — Extract every URL in a codebase, with its protocol and exact position
  • Paths-LE — Extract every file path in a codebase, and say whether it still points at anything
  • Colors-LE — Extract every color in a codebase, and say which ones are not in your palette

Check it

  • Regex-LE — Find every regex in a codebase, and report which can be driven into catastrophic backtracking
  • Versions-LE — Find where one dependency is constrained differently across a repository's manifests
  • i18n-LE — Identify the i18n library a project uses, then audit its catalogs by that library's rules
  • Scrape-LE — Check whether a page is scrapeable before the scraper is written, and say when it cannot tell

Guard it

  • Secrets-LE — Find hardcoded credentials in a codebase, and never print one into the report
  • EnvSync-LE — Compare the dotenv files in a tree, and say which keys are missing from which
  • Unicode-LE — Find the Unicode that hides meaning — bidi controls, invisibles, homoglyphs, mixed scripts

Each stands on its own: no shared crate, no published core. Where two of them agree, it is because the same answer was right twice.

Contact — nolindnaidoo.com · GitHub · LinkedIn

Also by nolindnaidoo

Rust — pixelcoords and pixelactions are one loop: pixelcoords answers where, pixelactions acts there. Their own tools, their own voice — not part of the LE family.

License

MIT © nolindnaidoo

Source: README.md at commit fe14ed4

Tools

0
Tool metadata has not been indexed yet.

Version history

1
  1. v1.0.0LatestOct 4, 2026