translation_audit
Audit translation coverage and integrity for translatable fields across records. Reports missing translations per language and flags suspect source or nonempty base terms to catch corruption.
Instructions
Audit translation coverage and integrity for translatable field(s) across one or more records. For each record×field it reports total source terms and, per target language, how many are translated and which source terms are still missing. It also returns two integrity flags: suspect_source (when base_lang is English, source terms written in Arabic script — the signature of the "translation stored as source" defect that destroys the English body) and nonempty_base (terms whose base-language value is non-empty). Use it to verify a bilingual push in one call and to catch source corruption early. record_id and field_name each accept a single value or an array. base_lang defaults to "en_US"; target_langs defaults to every non-base language present. Long term lists are capped at max_list (default 50) with a *_truncated flag. Returns {passed, summary, results: [...]} or {error}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| max_list | No | ||
| base_lang | No | ||
| record_id | Yes | ||
| field_name | Yes | ||
| target_langs | No |