FormingSkillclaude-codepublished fresh until

i18next or Lingui: how should an agent audit translations?

Summary As of October 2026, keep the existing message engine unless its workflow is the problem; audit raw catalogues, placeholders and pseudo-localized screens; for i18next QA, start with fallbackLng: false.

Not for Next.js hardcoded-string extraction; see nextjs-extract-hardcoded-strings-i18n-keys-codemod-lint.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
ASkill · v1.0.0Flat catalogue QA skill
How you use itYou ask for it
What it can dowrites files
What's inside
ASkill · v1.0.0Flat catalogue QA skill
How you use it
You ask for it
What it can do
writes files
What's inside

What this thread does

Compare raw catalogues before fallback, validate placeholders with the message parser, then use a pseudo-locale to inspect real screens.

Do first: In an i18next QA-only instance, set fallbackLng: false; for Lingui, configure a pseudo-locale in the existing Lingui configuration.

Steps

1. Ask the agent to inventory the existing message engine, source locale, namespaces, extraction pipeline and loading strategy before proposing a replacement. 2. Generate a source-key inventory and compare each target catalogue directly. In an i18next QA-only instance, fallbackLng: false disables configured fallback languages, but regional/script resolution and namespace/default-value fallbacks can still hide gaps. For an isolated exact-locale rendering check, also use load: 'currentOnly', disable fallback namespaces and avoid default values; retain the intended production fallback separately. Do not use a missing-key event as a completeness audit. 3. Compare placeholder names and multiplicity per message. ICU select/plural messages require an ICU parser and tests of every branch; Arabic plural requirements differ from English. Do not require identical plural suffix sets across languages. 4. Run a pseudo-locale through navigation, dialogs, validation errors and narrow screens. Check long text, untranslated text, concatenation and truncation. In Lingui, configure a pseudo-locale using its pseudolocalization guide; preserve message tokens instead of transforming raw markup. 5. Run real target-language cases for counts, dates, currency, names and interpolation escaping. Ask a fluent reviewer to assess meaning and tone.

Which setup fits?

ConstraintPickTradeoff
Existing key/namespace resources and runtime loadingKeep i18nextAdd catalogue auditing; fallback can hide gaps
New extracted-message workflow using ICU messagesEvaluate LinguiRequires extraction and compilation integration
Only a few untranslated stringsKeep the existing engineA migration adds work without proving better coverage

Stable release snapshot — checked 2026-11-23

EngineLatest stable release shown by official releasesLicence / cost scope
i18nextAs of November 2026, 27.2.6Licence text
LinguiAs of November 2026, 6.12.0Licence and hosted-service pricing not assessed here

These are setup recommendations, not instructions to upgrade an existing major version.

Prompt for the agent

Audit our current localization setup. Show missing/empty messages and token mismatches with file and key. Keep production fallbacks and translations unchanged. Propose QA-only fallback disabling, parser-based ICU tests and a pseudo-locale screen checklist. Separate mechanical failures from language-review questions.

Optional files-only package

The two original files below form an inline package; its immutable reference is the SHA-256 of the canonical file map, not an upstream commit. Requires an existing Python 3 interpreter. Installation only writes these files. No external code is included.

.claude/skills/ww-locale-qa/SKILL.md
---
name: ww-locale-qa
description: Audit flat translation catalogues before fallback hides gaps.
---
Compare source and target catalogues without editing them. Run check.py with both paths. Report missing keys, empty values and changed placeholder names. Do not auto-translate. Then inspect a pseudo-locale in the application for clipping and hardcoded strings. ICU, nesting and plural families need the application's parser and locale rules.
.claude/skills/ww-locale-qa/check.py
import collections, json, re, sys

def audit(source, target):
    if not all(isinstance(d, dict) and all(isinstance(k, str) and isinstance(v, str) for k, v in d.items()) for d in (source, target)):
        raise ValueError("Only flat string dictionaries are supported")
    tokens = lambda s: collections.Counter(re.findall(r"\{\{\s*([A-Za-z_][A-Za-z0-9_]*)\s*\}\}", s))
    failures = []
    for key, text in source.items():
        if key not in target:
            failures.append((key, "missing"))
        elif not target[key].strip():
            failures.append((key, "empty"))
        elif tokens(text) != tokens(target[key]):
            failures.append((key, "placeholders"))
    return failures

if sys.argv[1:] == ["--self-test"]:
    assert audit({"a": "Hi {{name}}"}, {"a": "Salut {{name}}"}) == []
    assert audit({"a": "A"}, {}) == [("a", "missing")]
    assert audit({"a": "A"}, {"a": " "}) == [("a", "empty")]
    assert audit({"a": "{{name}}"}, {"a": "{{other}}"}) == [("a", "placeholders")]
    assert audit({"a": "{{x}} {{x}}"}, {"a": "{{x}}"}) == [("a", "placeholders")]
    print("self-test ok")
else:
    if len(sys.argv) != 3:
        raise SystemExit("Pass source.json target.json")
    with open(sys.argv[1], encoding="utf-8") as f:
        source = json.load(f)
    with open(sys.argv[2], encoding="utf-8") as f:
        target = json.load(f)
    errors = audit(source, target)
    print(json.dumps(errors, ensure_ascii=False))
    raise SystemExit(bool(errors))

Run the package self-test, then run the authored checker against two flat catalogues, for example python3 .claude/skills/ww-locale-qa/check.py locales/en.json locales/fr.json. An empty array and exit zero mean this limited comparison passed. This is an authored command, not a vendor CLI.

Evidence

  • MerlinMason's i18next issue, “Missing keys (with successful fallback) event”, whose body says the missing-key event doesn't seem to fire when a fallback translation is found, describes why fallback can conceal missing translations. Historical report, not a current regression claim.
  • MartinCerny-awin's Lingui feature request, “verify that all strings are extracted”, explains the QA need; it is not a current benchmark.
  • xelossan's locale activation report describes message IDs appearing for unconfigured locale variants. Test locale selection as well as translation completeness.

Mistakes and limits

Configuration documents that saveMissing can write to a backend; do not turn it on casually for an audit. Interpolation escapes values by default; preserve that protection unless the rendering layer safely handles it. The bundled checker supports only flat JSON dictionaries and unformatted {{name}} tokens; it cannot validate ICU, rich text, nesting, custom delimiters, plural coverage, extraction completeness or linguistic quality. The self-test does not prove application rendering. No application or browser suite was run. Community evidence is historical and does not establish comparative reliability.

Started from a post by @i18next maintainers, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# i18next or Lingui: how should an agent audit translations?
Summary: As of October 2026, keep the existing message engine unless its workflow is the problem; audit raw catalogues, placeholders and pseudo-localized screens; for i18next QA, start with `fallbackLng: false`.

## Options
- A · Flat catalogue QA skill · early, no verdict yet · writes files
Copy for agent
get the whatworks thread i18next-or-lingui-agent-localization-qa and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread i18next-or-lingui-agent-localization-qa

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Flat catalogue QA skill

Original skill and standard-library Python checker for missing keys, blank translations and simple {{name}} placeholder mismatches. Does not support ICU or nested catalogues.

Format
Skill
Source
—
Pinned
v1.0.0 · sha256:65cf1
Content hash
65cf1974bf1773a9
Audit
scan passed
Can do
writes files
Works with
claude-code
Check
Skill file exists; Positive and negative fixtures exercise missing, empty and placeholder failures
Author
@WhatWorks
Kudos
0

This package has no public source link yet.

Are you @WhatWorks? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package ww-flat-locale-qa before installing
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp