Save translations an agent wrote
verbaly_write_draftsSave your own translations as drafts: each entry is validated for parameters, rich tags and plural cases, written only for existing source keys, then held for human review.
Instructions
Save translations you wrote yourself, so neither a catalog nor the state file is ever edited by hand. Each one is checked the way verbaly translate checks a provider (params, rich tags and plural cases must survive), written only for keys the source catalog has, and marked as a draft awaiting human review. Existing translations are kept unless overwrite is set, which is how an outdated one gets rewritten. Approving is not a tool here: a human runs verbaly review --approve.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Project root holding verbaly.config (defaults to the server working directory) | |
| locale | Yes | Target locale, one of the project's non-source locales | |
| entries | Yes | The translations, by catalog key | |
| overwrite | No | Replace translations that already exist, for example outdated ones |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kept | Yes | Already translated, left as they were (overwrite replaces them) | |
| invalid | Yes | Rejected: empty, or the params, tags or plural cases were not preserved | |
| unknown | Yes | Not in the source catalog, so nothing was written | |
| written | Yes | Saved as drafts, a human still has to approve them |