Translation glossary and rules
translation_glossaryRead and edit the workspace's translation glossary and translation rules (Settings → Translation). Every translation in the workspace follows them: captions translate, translated videos and articles. Use it when the user says how a term must be translated, that a product or brand name must stay untranslated, or how translations into a language should read (tone, formality). Do NOT hand-edit translated captions or text for this instead: the next translation repeats the mistake.
Glossary terms: original (source text) → translated (the original itself keeps it as is), for languages (codes or names; omit for every language), optionally case_sensitive.
Rules: ONE per language: prompt (instructions the translator follows), optional title and examples [{original, translation}].
Changes are WORKSPACE-WIDE and apply to translations made after them: tell the user when you add or change one, and translate again (captions action "translate") what should pick them up.
action:
• list — {terms: [{term_id, original, translated, languages, case_sensitive}], term_count, rules: [{rule_id, title, language, prompt, examples}]}; language keeps what applies to it, query filters terms by text (at most 200 terms per reply)
• set_term — add a term or change one. An existing term is not overwritten: you get error "entry_exists" with current; show the user both, confirm, then call again with replace: true. Several terms with the same original → error "several_terms": pass the term_id you mean.
• remove_term — delete the term with this original (exact text) or term_id
• set_rule — set language's rule; an existing one needs replace: true after the user confirmed (same "entry_exists" reply)
• remove_rule — delete language's rule
Editing needs an editor or admin role, and saving needs a plan with the translation glossary (Enterprise); a refusal says which: tell the user, don't retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | list: keep terms whose text contains this. | |
| title | No | set_rule: a label (default the language name). | |
| action | Yes | ||
| prompt | No | set_rule: the instructions for this language. | |
| replace | No | set_term/set_rule: overwrite an existing entry, only after the user confirmed. | |
| term_id | No | set_term/remove_term: one term from list, when several share an original. | |
| examples | No | set_rule: example translations the rule follows. | |
| language | No | set_rule/remove_rule: the target language (code or name); list: keep what applies to it. | |
| original | No | set_term/remove_term: the term as written in the source language. | |
| languages | No | set_term: target language codes or names; [] for every language. Omitted: every language on a new term, unchanged on a replace. | |
| translated | No | set_term: what the term becomes in the translation. | |
| case_sensitive | No | set_term: match only this exact casing (default false; unchanged on a replace). |