You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-reference/document.mdx
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Because the request includes a file upload, it must be an HTTP POST request with
34
34
35
35
Please be aware that the uploaded document is automatically removed from the server once the translated document has been downloaded. You have to upload the document again in order to restart the translation.
36
36
37
-
You may specify the glossary to use for the document translation using the `glossary_id` parameter. **Important:** This requires the `source_lang` parameter to be set and the language pair of the glossary has to match the language pair of the request.
37
+
You may specify the glossary to use for the document translation using the `glossary_id` parameter. **Important:** This requires the `source_lang` parameter to be set and the language pair of the glossary has to match the language pair of the request. If the target language is a variant (e.g., `EN-GB`), a glossary with the base language (e.g., `EN`) as its target language will still be applied.
38
38
39
39
For more detail about request body parameters, see the [Request Body Descriptions](/api-reference/document#request-body-descriptions) section further down on the page.
40
40
@@ -156,7 +156,10 @@ These examples are for demonstration purposes only. In production code, the auth
156
156
</ul>
157
157
</ParamField>
158
158
<ParamFieldbody="glossary_id"type="string">
159
-
A unique ID assigned to a glossary.
159
+
Specify the glossary to use for the document translation.
160
+
<Note>
161
+
<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. If the target language is a variant (e.g., <code>EN-GB</code>), a glossary with the base language (e.g., <code>EN</code>) as its target language will still be applied.
162
+
</Note>
160
163
</ParamField>
161
164
<ParamFieldbody="output_format"type="string">
162
165
File extension of desired format of translated file, for example: `pdf`. If unspecified, by default the translated file will be in the same format as the input file.
Copy file name to clipboardExpand all lines: api-reference/openapi.yaml
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -433,15 +433,15 @@ paths:
433
433
description: |-
434
434
Specify the glossary to use for the translation. **Important:** This requires the `source_lang`
435
435
parameter to be set. The language pair of the glossary has to match the language pair of the
436
-
request.
436
+
request. If the target language is a variant (e.g., `EN-GB`), a glossary with the base language (e.g., `EN`) as its target language will still be applied.
437
437
type: string
438
438
example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
439
439
style_id:
440
440
description: |-
441
-
Specify the [style rule list](/api-reference/style-rules) to use for the translation.
441
+
Specify the [style rule list](/api-reference/style-rules) to use for the translation.
442
+
443
+
**Important:** The target language has to match the language of the style rule list. If the target language is a variant (e.g., `EN-GB`), a style rule list created for the base language (e.g., `EN`) will still be applied.
442
444
443
-
**Important:** The target language has to match the language of the style rule list.
444
-
445
445
**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.
446
446
type: string
447
447
example: 7ff9bfd6-cd85-4190-8503-d6215a321519
@@ -525,7 +525,7 @@ paths:
525
525
description: |-
526
526
Specify the glossary to use for the translation. **Important:** This requires the `source_lang`
527
527
parameter to be set. The language pair of the glossary has to match the language pair of the
528
-
request.
528
+
request. If the target language is a variant (e.g., `EN-GB`), a glossary with the base language (e.g., `EN`) as its target language will still be applied.
529
529
type: string
530
530
example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
531
531
translation_memory_id:
@@ -682,7 +682,12 @@ paths:
682
682
formality:
683
683
$ref: '#/components/schemas/Formality'
684
684
glossary_id:
685
-
$ref: '#/components/schemas/GlossaryId'
685
+
description: |-
686
+
Specify the glossary to use for the document translation. **Important:** This requires the `source_lang`
687
+
parameter to be set. The language pair of the glossary has to match the language pair of the
688
+
request. If the target language is a variant (e.g., `EN-GB`), a glossary with the base language (e.g., `EN`) as its target language will still be applied.
689
+
type: string
690
+
example: def3a26b-3e84-45b3-84ae-0c0aaf3525f7
686
691
enable_beta_languages:
687
692
description: |-
688
693
No languages are currently in Beta. This parameter is maintained for backward compatibility and has no effect. Previously enabled 81 languages that are now part of the standard language list. See the [full list](/docs/getting-started/supported-languages).
Copy file name to clipboardExpand all lines: api-reference/translate.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -284,13 +284,13 @@ error.
284
284
<ParamFieldbody="glossary_id"type="string">
285
285
Specify the glossary to use for the translation.
286
286
<Note>
287
-
<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.
287
+
<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. If the target language is a variant (e.g., <code>EN-GB</code>), a glossary with the base language (e.g., <code>EN</code>) as its target language will still be applied.
288
288
</Note>
289
289
</ParamField>
290
290
<ParamFieldbody="style_id"type="string">
291
291
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.
292
292
<Info>
293
-
The target language has to match the language of the style rule list.
293
+
The target language has to match the language of the style rule list. If the target language is a variant (e.g., `EN-GB`), a style rule list created for the base language (e.g., `EN`) will still be applied.
294
294
295
295
Additionally, any request with the `style_id` parameter enabled will default to use the `quality_optimized` model type. Requests combining `style_id` and `model_type: latency_optimized` will be rejected.
Copy file name to clipboardExpand all lines: docs/getting-started/supported-languages.mdx
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,3 @@ import { LanguageTable } from "/snippets/language-table.jsx"
17
17
<Info>
18
18
Text improvement languages have not yet been added to the [`/languages` endpoint](/api-reference/languages/retrieve-supported-languages). For `/write/rephrase`, `writing_style` and `tone` currently work in `DE`, `EN-GB`, and `EN-US`.
19
19
</Info>
20
-
21
-
<Info>
22
-
Style rules are supported for the following target languages: `de`, `en`, `es`, `fr`, `it`, `ja`, `ko`, and `zh`. For more details, see the [Style Rules API documentation](/api-reference/style-rules).
0 commit comments