Skip to content

validate_translations

Lint a JSON i18next blob against the project: checks for missing keys, extra keys, and placeholder parity ({var}, {{var}}, %{var}) vs the source language. Each placeholder_mismatches[] item carries expected / got plus missing (source variables absent from the translation) and extra (variables in the translation unknown to the source).

NameTypeDescription
project_uuidstringoptionalProject UUID. Required when multiple projects are configured (SONENTA_PROJECTS); defaults to the single configured project otherwise.
language_codestringrequired
namespacestringoptionalRestrict to one namespace (default: all).
payloadobjectrequiredThe translation tree to validate.
{
"tool": "validate_translations",
"arguments": {
"language_code": "<language_code>",
"payload": {}
}
}