- How you use it
- You ask for it
- What it can do
- writes files
- What's inside
The option
| Option | 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?
| Constraint | Pick | Tradeoff |
|---|---|---|
| Existing key/namespace resources and runtime loading | Keep i18next | Add catalogue auditing; fallback can hide gaps |
| New extracted-message workflow using ICU messages | Evaluate Lingui | Requires extraction and compilation integration |
| Only a few untranslated strings | Keep the existing engine | A migration adds work without proving better coverage |
Stable release snapshot — checked 2026-11-23
| Engine | Latest stable release shown by official releases | Licence / cost scope |
|---|---|---|
| i18next | As of November 2026, 27.2.6 | Licence text |
| Lingui | As of November 2026, 6.12.0 | Licence 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
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.