Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions api-reference/document.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,17 @@ These examples are for demonstration purposes only. In production code, the auth
</ParamField>
<ParamField body="glossary_id" type="string">
A unique ID assigned to a glossary. To check glossary support for a language pair, call <a href="/api-reference/languages/retrieve-supported-languages-by-resource"><code>GET /v3/languages?resource=translate_document</code></a> and verify the <code>glossary</code> feature key is present on both the source and target language.
<Note>
Cannot be used together with <code>glossary_ids</code>.
</Note>
</ParamField>
<ParamField body="glossary_ids" type="array[string]">
Specify up to 5 glossaries to use for the document translation, as an array of glossary IDs. Each glossary's matching terms are applied to the translated document.
<Note>
<strong>Important:</strong> This requires the <code>source_lang</code> parameter to be set, and every listed glossary must contain a dictionary for the requested language pair.

Cannot be used together with <code>glossary_id</code>.
</Note>
</ParamField>
<ParamField body="style_id" type="string">
Specify the style rule list to use for the translation which can be used to customize translations according to the selected formatting and style conventions.
Expand Down
44 changes: 41 additions & 3 deletions api-reference/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -775,10 +775,19 @@
"$ref": "#/components/schemas/ModelType"
},
"glossary_id": {
"description": "Specify the glossary to use for the translation. **Important:** This requires the `source_lang`\nparameter to be set. The language pair of the glossary has to match the language pair of the\nrequest.",
"description": "Specify the glossary to use for the translation. **Important:** This requires the `source_lang`\nparameter to be set. The language pair of the glossary has to match the language pair of the\nrequest.\n\nCannot be used together with `glossary_ids`.",
"type": "string",
"example": "def3a26b-3e84-45b3-84ae-0c0aaf3525f7"
},
"glossary_ids": {
"description": "Specify up to 5 glossaries to use for the translation, as an array of glossary IDs. Each glossary's matching terms are applied to the translation.\n\n**Important:** This requires the `source_lang` parameter to be set. Every listed glossary must contain a dictionary for the requested language pair.\n\nCannot be used together with `glossary_id`.",
"type": "array",
"maxItems": 5,
"items": {
"type": "string",
"example": "def3a26b-3e84-45b3-84ae-0c0aaf3525f7"
}
},
"style_id": {
"description": "Specify the [style rule list](/api-reference/style-rules) to use for the translation.\n\n**Important:** The target language has to match the language of the style rule list.\n\n**Note:** Any request with the `style_id` parameter enabled will use `quality_optimized` models. Requests combining `style_id` and `model_type: latency_optimized` will be rejected.",
"type": "string",
Expand Down Expand Up @@ -881,10 +890,19 @@
"$ref": "#/components/schemas/ModelType"
},
"glossary_id": {
"description": "Specify the glossary to use for the translation. **Important:** This requires the `source_lang`\nparameter to be set. The language pair of the glossary has to match the language pair of the\nrequest.",
"description": "Specify the glossary to use for the translation. **Important:** This requires the `source_lang`\nparameter to be set. The language pair of the glossary has to match the language pair of the\nrequest.\n\nCannot be used together with `glossary_ids`.",
"type": "string",
"example": "def3a26b-3e84-45b3-84ae-0c0aaf3525f7"
},
"glossary_ids": {
"description": "Comma-separated list of up to 5 glossary IDs to use for the translation. Each glossary's matching terms are applied to the translation. May also be sent as a repeated parameter.\n\n**Important:** This requires the `source_lang` parameter to be set. Every listed glossary must contain a dictionary for the requested language pair.\n\nCannot be used together with `glossary_id`.",
"type": "array",
"maxItems": 5,
"items": {
"type": "string",
"example": "def3a26b-3e84-45b3-84ae-0c0aaf3525f7"
}
},
"translation_memory_id": {
"$ref": "#/components/schemas/TranslationMemoryId"
},
Expand Down Expand Up @@ -1051,6 +1069,15 @@
"glossary_id": "[yourGlossaryId]"
}
},
"MultipleGlossaries": {
"summary": "Using Multiple Glossaries",
"value": {
"source_lang": "EN",
"target_lang": "DE",
"file": "@document.docx",
"glossary_ids": "[yourGlossaryId1],[yourGlossaryId2]"
}
},
"StyleRule": {
"summary": "Using a Style Rule List",
"value": {
Expand Down Expand Up @@ -1101,7 +1128,18 @@
"$ref": "#/components/schemas/Formality"
},
"glossary_id": {
"$ref": "#/components/schemas/GlossaryId"
"description": "A unique ID assigned to a glossary. To check glossary support for a language pair, call `GET /v3/languages?resource=translate_document` and verify the `glossary` feature key is present on both the source and target language.\n\nCannot be used together with `glossary_ids`.",
"type": "string",
"example": "def3a26b-3e84-45b3-84ae-0c0aaf3525f7"
},
"glossary_ids": {
"description": "Comma-separated list of up to 5 glossary IDs to use for the translation. Each glossary's matching terms are applied to the translated document. May also be sent as a repeated parameter.\n\n**Important:** This requires the `source_lang` parameter to be set. Every listed glossary must contain a dictionary for the requested language pair.\n\nCannot be used together with `glossary_id`.",
"type": "array",
"maxItems": 5,
"items": {
"type": "string",
"example": "def3a26b-3e84-45b3-84ae-0c0aaf3525f7"
}
},
"style_id": {
"description": "Specify the [style rule list](/api-reference/style-rules) to use for the translation.\n\n**Important:** The target language has to match the language of the style rule list.",
Expand Down
54 changes: 53 additions & 1 deletion api-reference/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,22 @@ paths:
Specify the glossary to use for the translation. **Important:** This requires the `source_lang`
parameter to be set. The language pair of the glossary has to match the language pair of the
request.

Cannot be used together with `glossary_ids`.
type: string
example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
glossary_ids:
description: |-
Specify up to 5 glossaries to use for the translation, as an array of glossary IDs. Each glossary's matching terms are applied to the translation.

**Important:** This requires the `source_lang` parameter to be set. Every listed glossary must contain a dictionary for the requested language pair.

Cannot be used together with `glossary_id`.
type: array
maxItems: 5
items:
type: string
example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
style_id:
description: |-
Specify the [style rule list](/api-reference/style-rules) to use for the translation.
Expand Down Expand Up @@ -665,8 +679,22 @@ paths:
Specify the glossary to use for the translation. **Important:** This requires the `source_lang`
parameter to be set. The language pair of the glossary has to match the language pair of the
request.

Cannot be used together with `glossary_ids`.
type: string
example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
glossary_ids:
description: |-
Comma-separated list of up to 5 glossary IDs to use for the translation. Each glossary's matching terms are applied to the translation. May also be sent as a repeated parameter.

**Important:** This requires the `source_lang` parameter to be set. Every listed glossary must contain a dictionary for the requested language pair.

Cannot be used together with `glossary_id`.
type: array
maxItems: 5
items:
type: string
example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
translation_memory_id:
$ref: '#/components/schemas/TranslationMemoryId'
translation_memory_threshold:
Expand Down Expand Up @@ -787,6 +815,13 @@ paths:
target_lang: DE
file: '@document.docx'
glossary_id: '[yourGlossaryId]'
MultipleGlossaries:
summary: Using Multiple Glossaries
value:
source_lang: EN
target_lang: DE
file: '@document.docx'
glossary_ids: '[yourGlossaryId1],[yourGlossaryId2]'
StyleRule:
summary: Using a Style Rule List
value:
Expand Down Expand Up @@ -837,7 +872,24 @@ paths:
formality:
$ref: '#/components/schemas/Formality'
glossary_id:
$ref: '#/components/schemas/GlossaryId'
description: |-
A unique ID assigned to a glossary. To check glossary support for a language pair, call `GET /v3/languages?resource=translate_document` and verify the `glossary` feature key is present on both the source and target language.

Cannot be used together with `glossary_ids`.
type: string
example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
glossary_ids:
description: |-
Comma-separated list of up to 5 glossary IDs to use for the translation. Each glossary's matching terms are applied to the translated document. May also be sent as a repeated parameter.

**Important:** This requires the `source_lang` parameter to be set. Every listed glossary must contain a dictionary for the requested language pair.

Cannot be used together with `glossary_id`.
type: array
maxItems: 5
items:
type: string
example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
style_id:
description: |-
Specify the [style rule list](/api-reference/style-rules) to use for the translation.
Expand Down
10 changes: 10 additions & 0 deletions api-reference/translate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,19 @@ error.
Specify the glossary to use for the translation.
<Note>
<strong>Important:</strong> This requires the <code>source_lang</code> parameter to be set and the language pair of the glossary has to match the language pair of the request.

Cannot be used together with <code>glossary_ids</code>.
</Note>
To check glossary support for a language pair, call <a href="/api-reference/languages/retrieve-supported-languages-by-resource"><code>GET /v3/languages?resource=translate_text</code></a> and verify the <code>glossary</code> feature key is present on both the source and target language.
</ParamField>
<ParamField body="glossary_ids" type="array[string]">
Specify up to 5 glossaries to use for the translation, as an array of glossary IDs. Each glossary's matching terms are applied to the translation.
<Note>
<strong>Important:</strong> This requires the <code>source_lang</code> parameter to be set, and every listed glossary must contain a dictionary for the requested language pair.

Cannot be used together with <code>glossary_id</code>.
</Note>
</ParamField>
<ParamField body="style_id" type="string">
Specify the style rule list to use for the translation which can be used to customize translations according to the selected formatting and style conventions.
<Info>
Expand Down
6 changes: 6 additions & 0 deletions docs/resources/roadmap-and-release-notes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ rss: true
</Update>

<Update label="June 2026">
## June 10 - Multiple Glossaries per Translation Request
- [`POST /v2/translate`](/api-reference/translate/request-translation) and [`POST /v2/document`](/api-reference/document/upload-and-translate-a-document) now accept a `glossary_ids` parameter, allowing you to apply up to 5 glossaries to a single translation request.
- Useful when terminology is split across multiple glossaries (for example, a shared brand glossary plus a project-specific glossary) that you want applied together without merging them.
- `glossary_ids` requires `source_lang` and is mutually exclusive with the existing `glossary_id` parameter. Every listed glossary must contain a dictionary for the requested language pair.
- See the [text translation](/api-reference/translate#request-body-descriptions) and [document translation](/api-reference/document#request-body-descriptions) overview pages for parameter details.

## June 8 - Style Rules and Translation Memories for Document Translation
- [`POST /v2/document`](/api-reference/document/upload-and-translate-a-document) now accepts `style_id`, `translation_memory_id`, and `translation_memory_threshold`, bringing document translation in line with the parameters already available on text translation.
- `style_id` applies a configured [style rule list](/api-reference/style-rules) to the document translation.
Expand Down