i18n-LE

v1.1.0
io.github.nolindnaidoo/i18n-le Checked 17 hours ago Published 1 month ago

Audit 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…

ParameterTypeDescription
files *arrayThe catalogues to audit. JSON, nested or flat.
library *stringWhich i18n library wrote these catalogues. It supplies the placeholder grammar, the plural model and which keys are metadata.
keysAreSourcebooleanThe key is itself the English string, as in a VS Code bundle.l10n.json.
maxResultsintegerCap on returned findings (default 500). meta.truncated reports whether any were dropped.
sourcestringWhich 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.