i18n-LE
v1.1.0Audit translation catalogues: missing keys, broken placeholders.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
check_catalogues
Audit a set of translation catalogues against one of them and report what is structurally wrong: missing and extra keys, placeholders dropped or renamed in translation, constructs from another i18n convention, empty values, keys defined twice, and a path that is an object in one locale and a string in another. Takes file contents directly and reads no files. Only key names and structural facts are returned — never a translated string. The i18n library must be named: identifying it needs manifests, config files and source call sites, none of which this surface can see, and guessing the placeh…
| Parameter | Type | Description |
|---|---|---|
files * | array | The catalogues to audit. JSON, nested or flat. |
library * | string | Which i18n library wrote these catalogues. It supplies the placeholder grammar, the plural model and which keys are metadata. |
keysAreSource | boolean | The key is itself the English string, as in a VS Code bundle.l10n.json. |
maxResults | integer | Cap on returned findings (default 500). meta.truncated reports whether any were dropped. |
source | string | Which catalogue is the contract — a path or a language tag. Without it, exactly one English candidate must exist or the audit is refused rather than guessed at. |