Skip to content

Commit 9227193

Browse files
feat: ES-419 is now a valid target language option for DocTrans
1 parent ac654ba commit 9227193

3 files changed

Lines changed: 23 additions & 5 deletions

File tree

openapi.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,6 +2057,11 @@
20572057
"name": "Spanish",
20582058
"supports_formality": true
20592059
},
2060+
{
2061+
"language": "ES-419",
2062+
"name": "Spanish (Latin American)",
2063+
"supports_formality": true
2064+
},
20602065
{
20612066
"language": "ET",
20622067
"name": "Estonian",
@@ -2775,7 +2780,7 @@
27752780
}
27762781
},
27772782
"Formality": {
2778-
"description": "Sets whether the translated text should lean towards formal or informal language.\nThis feature currently only works for target languages\n`DE` (German),\n`FR` (French),\n`IT` (Italian),\n`ES` (Spanish),\n`NL` (Dutch),\n`PL` (Polish),\n`PT-BR` and `PT-PT` (Portuguese),\n`JA` (Japanese),\nand `RU` (Russian).\nLearn more about the plain/polite feature for Japanese [here](https://support.deepl.com/hc/en-us/articles/6306700061852-About-the-plain-polite-feature-in-Japanese).\nSetting this parameter with a target language that does not support formality will fail,\nunless one of the `prefer_...` options are used.\nPossible options are:\n * `default` (default)\n * `more` - for a more formal language\n * `less` - for a more informal language\n * `prefer_more` - for a more formal language if available, otherwise fallback to default formality\n * `prefer_less` - for a more informal language if available, otherwise fallback to default formality",
2783+
"description": "Sets whether the translated text should lean towards formal or informal language.\nThis feature currently only works for target languages\n`DE` (German),\n`FR` (French),\n`IT` (Italian),\n`ES` (Spanish),\n`ES-419` (Latin American Spanish),\n`NL` (Dutch),\n`PL` (Polish),\n`PT-BR` and `PT-PT` (Portuguese),\n`JA` (Japanese),\nand `RU` (Russian).\nLearn more about the plain/polite feature for Japanese [here](https://support.deepl.com/hc/en-us/articles/6306700061852-About-the-plain-polite-feature-in-Japanese).\nSetting this parameter with a target language that does not support formality will fail,\nunless one of the `prefer_...` options are used.\nPossible options are:\n * `default` (default)\n * `more` - for a more formal language\n * `less` - for a more informal language\n * `prefer_more` - for a more formal language if available, otherwise fallback to default formality\n * `prefer_less` - for a more informal language if available, otherwise fallback to default formality",
27792784
"type": "string",
27802785
"enum": [
27812786
"default",
@@ -3309,7 +3314,7 @@
33093314
},
33103315
"TargetLanguage": {
33113316
"type": "string",
3312-
"description": "The language into which the text should be translated. Options currently available:\n * `AR` - Arabic\n * `BG` - Bulgarian\n * `CS` - Czech\n * `DA` - Danish\n * `DE` - German\n * `EL` - Greek\n * `EN` - English (unspecified variant for backward compatibility; please select `EN-GB` or `EN-US` instead)\n * `EN-GB` - English (British)\n * `EN-US` - English (American)\n * `ES` - Spanish\n * `ET` - Estonian\n * `FI` - Finnish\n * `FR` - French\n * `HU` - Hungarian\n * `ID` - Indonesian\n * `IT` - Italian\n * `JA` - Japanese\n * `KO` - Korean\n * `LT` - Lithuanian\n * `LV` - Latvian\n * `NB` - Norwegian (Bokm\u00e5l)\n * `NL` - Dutch\n * `PL` - Polish\n * `PT` - Portuguese (unspecified variant for backward compatibility; please select `PT-BR` or `PT-PT` instead)\n * `PT-BR` - Portuguese (Brazilian)\n * `PT-PT` - Portuguese (all Portuguese varieties excluding Brazilian Portuguese)\n * `RO` - Romanian\n * `RU` - Russian\n * `SK` - Slovak\n * `SL` - Slovenian\n * `SV` - Swedish\n * `TR` - Turkish\n * `UK` - Ukrainian\n * `ZH` - Chinese (unspecified variant for backward compatibility; please select `ZH-HANS` instead)\n * `ZH-HANS` - Chinese (simplified)\n * `ZH-HANT` - Chinese (traditional)",
3317+
"description": "The language into which the text should be translated. Options currently available:\n * `AR` - Arabic\n * `BG` - Bulgarian\n * `CS` - Czech\n * `DA` - Danish\n * `DE` - German\n * `EL` - Greek\n * `EN` - English (unspecified variant for backward compatibility; please select `EN-GB` or `EN-US` instead)\n * `EN-GB` - English (British)\n * `EN-US` - English (American)\n * `ES` - Spanish\n * `ES-419` - Spanish (Latin American)\n * `ET` - Estonian\n * `FI` - Finnish\n * `FR` - French\n * `HU` - Hungarian\n * `ID` - Indonesian\n * `IT` - Italian\n * `JA` - Japanese\n * `KO` - Korean\n * `LT` - Lithuanian\n * `LV` - Latvian\n * `NB` - Norwegian (Bokm\u00e5l)\n * `NL` - Dutch\n * `PL` - Polish\n * `PT` - Portuguese (unspecified variant for backward compatibility; please select `PT-BR` or `PT-PT` instead)\n * `PT-BR` - Portuguese (Brazilian)\n * `PT-PT` - Portuguese (all Portuguese varieties excluding Brazilian Portuguese)\n * `RO` - Romanian\n * `RU` - Russian\n * `SK` - Slovak\n * `SL` - Slovenian\n * `SV` - Swedish\n * `TR` - Turkish\n * `UK` - Ukrainian\n * `ZH` - Chinese (unspecified variant for backward compatibility; please select `ZH-HANS` instead)\n * `ZH-HANS` - Chinese (simplified)\n * `ZH-HANT` - Chinese (traditional)",
33133318
"enum": [
33143319
"AR",
33153320
"BG",
@@ -3320,6 +3325,7 @@
33203325
"EN-GB",
33213326
"EN-US",
33223327
"ES",
3328+
"ES-419",
33233329
"ET",
33243330
"FI",
33253331
"FR",
@@ -3350,7 +3356,7 @@
33503356
},
33513357
"TargetLanguageText": {
33523358
"type": "string",
3353-
"description": "The language into which the text should be translated. Options currently available:\n * `AR` - Arabic\n * `BG` - Bulgarian\n * `CS` - Czech\n * `DA` - Danish\n * `DE` - German\n * `EL` - Greek\n * `EN` - English (unspecified variant for backward compatibility; please select `EN-GB` or `EN-US` instead)\n * `EN-GB` - English (British)\n * `EN-US` - English (American)\n * `ES` - Spanish\n * `ES-419` - Spanish (Latin American) [1]\n * `ET` - Estonian\n * `FI` - Finnish\n * `FR` - French\n * `HE` - Hebrew [1]\n * `HU` - Hungarian\n * `ID` - Indonesian\n * `IT` - Italian\n * `JA` - Japanese\n * `KO` - Korean\n * `LT` - Lithuanian\n * `LV` - Latvian\n * `NB` - Norwegian (Bokm\u00e5l)\n * `NL` - Dutch\n * `PL` - Polish\n * `PT` - Portuguese (unspecified variant for backward compatibility; please select `PT-BR` or `PT-PT` instead)\n * `PT-BR` - Portuguese (Brazilian)\n * `PT-PT` - Portuguese (all Portuguese variants excluding Brazilian Portuguese)\n * `RO` - Romanian\n * `RU` - Russian\n * `SK` - Slovak\n * `SL` - Slovenian\n * `SV` - Swedish\n * `TH` - Thai [1]\n * `TR` - Turkish\n * `UK` - Ukrainian\n * `VI` - Vietnamese [1]\n * `ZH` - Chinese (unspecified variant for backward compatibility; please select `ZH-HANS` or `ZH-HANT` instead)\n * `ZH-HANS` - Chinese (simplified)\n * `ZH-HANT` - Chinese (traditional)\n\n[1] Please note that Hebrew, Latin American Spanish, Thai, and Vietnamese have not yet been added to\nthe `/languages` endpoint because they does not yet support document translation; only text translation\nis supported for those languages at this time. When document translation support is added for Hebrew, Thai,\nand Vietnamese, we will a) remove this note and b) add Hebrew, Thai, and Vietnamese to the `/languages` endpoint.",
3359+
"description": "The language into which the text should be translated. Options currently available:\n * `AR` - Arabic\n * `BG` - Bulgarian\n * `CS` - Czech\n * `DA` - Danish\n * `DE` - German\n * `EL` - Greek\n * `EN` - English (unspecified variant for backward compatibility; please select `EN-GB` or `EN-US` instead)\n * `EN-GB` - English (British)\n * `EN-US` - English (American)\n * `ES` - Spanish\n * `ES-419` - Spanish (Latin American)\n * `ET` - Estonian\n * `FI` - Finnish\n * `FR` - French\n * `HE` - Hebrew [1]\n * `HU` - Hungarian\n * `ID` - Indonesian\n * `IT` - Italian\n * `JA` - Japanese\n * `KO` - Korean\n * `LT` - Lithuanian\n * `LV` - Latvian\n * `NB` - Norwegian (Bokm\u00e5l)\n * `NL` - Dutch\n * `PL` - Polish\n * `PT` - Portuguese (unspecified variant for backward compatibility; please select `PT-BR` or `PT-PT` instead)\n * `PT-BR` - Portuguese (Brazilian)\n * `PT-PT` - Portuguese (all Portuguese variants excluding Brazilian Portuguese)\n * `RO` - Romanian\n * `RU` - Russian\n * `SK` - Slovak\n * `SL` - Slovenian\n * `SV` - Swedish\n * `TH` - Thai [1]\n * `TR` - Turkish\n * `UK` - Ukrainian\n * `VI` - Vietnamese [1]\n * `ZH` - Chinese (unspecified variant for backward compatibility; please select `ZH-HANS` or `ZH-HANT` instead)\n * `ZH-HANS` - Chinese (simplified)\n * `ZH-HANT` - Chinese (traditional)\n\n[1] Please note that Hebrew, Thai, and Vietnamese have not yet been added to\nthe `/languages` endpoint because they does not yet support document translation; only text translation\nis supported for those languages at this time. When document translation support is added for Hebrew, Thai,\nand Vietnamese, we will a) remove this note and b) add Hebrew, Thai, and Vietnamese to the `/languages` endpoint.",
33543360
"enum": [
33553361
"AR",
33563362
"BG",
@@ -3361,6 +3367,7 @@
33613367
"EN-GB",
33623368
"EN-US",
33633369
"ES",
3370+
"ES-419",
33643371
"ET",
33653372
"FI",
33663373
"FR",

openapi.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,9 @@ paths:
15061506
- language: ES
15071507
name: Spanish
15081508
supports_formality: true
1509+
- language: ES-419
1510+
name: Spanish (Latin American)
1511+
supports_formality: true
15091512
- language: ET
15101513
name: Estonian
15111514
supports_formality: false
@@ -2019,6 +2022,7 @@ components:
20192022
`FR` (French),
20202023
`IT` (Italian),
20212024
`ES` (Spanish),
2025+
`ES-419` (Latin American Spanish),
20222026
`NL` (Dutch),
20232027
`PL` (Polish),
20242028
`PT-BR` and `PT-PT` (Portuguese),
@@ -2740,6 +2744,7 @@ components:
27402744
* `EN-GB` - English (British)
27412745
* `EN-US` - English (American)
27422746
* `ES` - Spanish
2747+
* `ES-419` - Spanish (Latin American)
27432748
* `ET` - Estonian
27442749
* `FI` - Finnish
27452750
* `FR` - French
@@ -2776,6 +2781,7 @@ components:
27762781
- EN-GB
27772782
- EN-US
27782783
- ES
2784+
- ES-419
27792785
- ET
27802786
- FI
27812787
- FR
@@ -2816,7 +2822,7 @@ components:
28162822
* `EN-GB` - English (British)
28172823
* `EN-US` - English (American)
28182824
* `ES` - Spanish
2819-
* `ES-419` - Spanish (Latin American) [1]
2825+
* `ES-419` - Spanish (Latin American)
28202826
* `ET` - Estonian
28212827
* `FI` - Finnish
28222828
* `FR` - French
@@ -2847,7 +2853,7 @@ components:
28472853
* `ZH-HANS` - Chinese (simplified)
28482854
* `ZH-HANT` - Chinese (traditional)
28492855
2850-
[1] Please note that Hebrew, Latin American Spanish, Thai, and Vietnamese have not yet been added to
2856+
[1] Please note that Hebrew, Thai, and Vietnamese have not yet been added to
28512857
the `/languages` endpoint because they does not yet support document translation; only text translation
28522858
is supported for those languages at this time. When document translation support is added for Hebrew, Thai,
28532859
and Vietnamese, we will a) remove this note and b) add Hebrew, Thai, and Vietnamese to the `/languages` endpoint.
@@ -2861,6 +2867,7 @@ components:
28612867
- EN-GB
28622868
- EN-US
28632869
- ES
2870+
- ES-419
28642871
- ET
28652872
- FI
28662873
- FR

openapi_gitbook.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1398,6 +1398,9 @@ paths:
13981398
- language: ES
13991399
name: Spanish
14001400
supports_formality: true
1401+
- language: ES-419
1402+
name: Spanish (Latin American)
1403+
supports_formality: true
14011404
- language: ET
14021405
name: Estonian
14031406
supports_formality: false
@@ -2318,6 +2321,7 @@ components:
23182321
- EN-GB
23192322
- EN-US
23202323
- ES
2324+
- ES-419
23212325
- ET
23222326
- FI
23232327
- FR

0 commit comments

Comments
 (0)