Update a translation
weblate_update_translationDestructiveIdempotent
WRITE: set the translation of one string (replaces the current target). target is the list of plural forms. state is required (Weblate rejects a partial update without both): 0 untranslated with an empty target, 10 needs editing, 20 translated or 30 approved (approval needs the review workflow and permission). The number of plural forms must match the language. Changes are committed to the repository by Weblate's normal schedule. PATCH /api/units/{id}/.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | New state: 0 untranslated (target must be empty), 10 needs editing, 20 translated, 30 approved. | |
| target | Yes | The text as a list of plural forms; use a one-element list for a string without plurals. | |
| unit_id | Yes | Weblate unit id (from weblate_list_units). |