Skip to content

feat(skills): add ngx-translate guidance and catalogue checker - #1705

Merged
rbalet merged 3 commits into
developfrom
codex/mcp
Nov 15, 2026
Merged

rbalet merged 3 commits into
developfrom
codex/mcp

Conversation

@rbalet

@rbalet rbalet commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Summary

Add a distributable ngx-translate agent skill for setup, migrations, and JSON catalogue audits.

skills/ngx-translate/
├── SKILL.md
└── scripts/
    ├── check.mjs       # list/audit CLI
    └── catalogues.mjs  # deterministic comparisons

Copy the complete skill directory into a compatible agent's skills directory. The checker runs directly with Node.js 22+, without dependencies, a build step, or package publication. Includes CI coverage. Website documentation: CodeAndWeb/ngx-translate.org#30.

Evidence

  • Before: Consumer applications had no bundled ngx-translate skill or catalogue checker.
    After: check.mjs audit --root ./public/i18n --source en.json --target fr.json returns a JSON report for missing/extra keys, value types, and interpolation parameters. Comparing Hello {{name}} with Bonjour {{person}} reports name as missing and person as extra.

Exit codes distinguish a clean comparison (0), reported differences (1), and an incomplete audit or invalid input (2). Failed audits emit a JSON error on stderr and no partial report.

Merge Danger

Door: two-way

Blast Radius: tooling

The checker reads only within the configured directory and retains file-size, nesting, entry-count, and output limits. It does not modify catalogues. Findings compare supplied files; the skill explains how to account for runtime fallbacks, merged resources, custom compilers, and dynamic keys. Existing library code, dependencies, and release workflows are unchanged.

@rbalet rbalet changed the title feat(mcp): add read-only translation audit server feat(skills): add ngx-translate guidance and catalogue checker Nov 15, 2026
@rbalet
rbalet marked this pull request as ready for review November 15, 2026 15:54
@rbalet
rbalet merged commit 202e338 into develop Nov 15, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant