Skip to content

Commit 87e559b

Browse files
Merge pull request #15 from DeepLcom/add_glossary_languages
Add glossary languages
2 parents 1b893ad + 4ba37fb commit 87e559b

File tree

4 files changed

+36
-6
lines changed

4 files changed

+36
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ number is used only for corrections to the OpenAPI specification, for example:
1010
typos, schema fixes, or adding examples.
1111

1212

13+
## [2.14.0] - 2024-05-08
14+
### Added
15+
* Added supported glossary languages: Danish (`'da'`), Norwegian (bokmål) (`'nb'`), and Swedish (`'sv'`).
16+
17+
1318
## [2.13.0] - 2024-03-14
1419
### Deprecated
1520
* Remove all properties from `/usage` except for `character_count` and `character_limit`;
@@ -126,6 +131,7 @@ typos, schema fixes, or adding examples.
126131
Initial release of the OpenAPI specification.
127132

128133

134+
[2.14.0]: https://github.com/DeepLcom/openapi/compare/v2.13.0...v2.14.0
129135
[2.13.0]: https://github.com/DeepLcom/openapi/compare/v2.12.0...v2.13.0
130136
[2.12.0]: https://github.com/DeepLcom/openapi/compare/v2.11.0...v2.12.0
131137
[2.11.0]: https://github.com/DeepLcom/openapi/compare/v2.10.0...v2.11.0

openapi.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "DeepL - Contact us",
99
"url": "https://www.deepl.com/contact-us"
1010
},
11-
"version": "2.13.0"
11+
"version": "2.14.0"
1212
},
1313
"externalDocs": {
1414
"description": "DeepL Pro - Plans and pricing",
@@ -35,7 +35,7 @@
3535
},
3636
{
3737
"name": "ManageGlossaries",
38-
"description": "The *glossary* functions allow you to create, inspect, and delete glossaries.\nGlossaries created with the glossary function can be used in translate requests by specifying the\n`glossary_id` parameter.\nIf you encounter issues, please let us know at support@DeepL.com.\n\nThe DeepL API supports glossaries in any combination of two languages from the following list, enabling a total of\n66 possible glossary language pairs:\n\n- DE (German)\n- EN (English)\n- ES (Spanish)\n- FR (French)\n- IT (Italian)\n- JA (Japanese)\n- KO (Korean)\n- NL (Dutch)\n- PL (Polish)\n- PT (Portuguese)\n- RU (Russian)\n- ZH (Chinese)\n\nThe maximum size limit for a glossary is 10 MiB = 10485760 bytes and each source/target text,\nas well as the name of the glossary, is limited to 1024 UTF-8 bytes.\nA total of 1000 glossaries are allowed per account.\n\nWhen creating a glossary with target language `EN` or `PT`, it's not necessary to specify a variant (e.g. `EN-US`, `EN-GB`, `PT-PT` or `PT-BR`).\nGlossaries with target language `EN` can be used in translations with either English variant.\nSimilarly `PT` glossaries can be used in translations with either Portuguese variant.\n\n\nGlossaries created via the DeepL API are distinct from glossaries created via the DeepL website and DeepL apps.\nThis means API glossaries cannot be used on the website and vice versa.\n\n\n\nNote that glossaries are immutable: once created, the glossary entries for a given glossary ID cannot be modified.\n\nAs a workaround for effectively editable glossaries, we suggest to identify glossaries by name instead of ID in your application\nand then use the following procedure for modifications:\n- [download](https://www.deepl.com/docs-api/glossaries/get-glossary-entries) and store the current glossary's entries,\n- locally modify the glossary entries,\n- [delete](https://www.deepl.com/docs-api/glossaries/delete-glossary) the existing glossary,\n- [create a new glossary](https://www.deepl.com/docs-api/glossaries/create-glossary) with the same name."
38+
"description": "The *glossary* functions allow you to create, inspect, and delete glossaries.\nGlossaries created with the glossary function can be used in translate requests by specifying the\n`glossary_id` parameter.\nIf you encounter issues, please let us know at support@DeepL.com.\n\nThe DeepL API supports glossaries in any combination of two languages from the following list, enabling a total of\n105 possible glossary language pairs:\n\n- DA (Danish)\n- DE (German)\n- EN (English)\n- ES (Spanish)\n- FR (French)\n- IT (Italian)\n- JA (Japanese)\n- KO (Korean)\n- NB (Norwegian (bokm\u00e5l))\n- NL (Dutch)\n- PL (Polish)\n- PT (Portuguese)\n- RU (Russian)\n- SV (Swedish)\n- ZH (Chinese)\n\nThe maximum size limit for a glossary is 10 MiB = 10485760 bytes and each source/target text,\nas well as the name of the glossary, is limited to 1024 UTF-8 bytes.\nA total of 1000 glossaries are allowed per account.\n\nWhen creating a glossary with target language `EN` or `PT`, it's not necessary to specify a variant (e.g. `EN-US`, `EN-GB`, `PT-PT` or `PT-BR`).\nGlossaries with target language `EN` can be used in translations with either English variant.\nSimilarly `PT` glossaries can be used in translations with either Portuguese variant.\n\n\nGlossaries created via the DeepL API are distinct from glossaries created via the DeepL website and DeepL apps.\nThis means API glossaries cannot be used on the website and vice versa.\n\n\n\nNote that glossaries are immutable: once created, the glossary entries for a given glossary ID cannot be modified.\n\nAs a workaround for effectively editable glossaries, we suggest to identify glossaries by name instead of ID in your application\nand then use the following procedure for modifications:\n- [download](https://www.deepl.com/docs-api/glossaries/get-glossary-entries) and store the current glossary's entries,\n- locally modify the glossary entries,\n- [delete](https://www.deepl.com/docs-api/glossaries/delete-glossary) the existing glossary,\n- [create a new glossary](https://www.deepl.com/docs-api/glossaries/create-glossary) with the same name."
3939
},
4040
{
4141
"name": "MetaInformation",
@@ -1781,17 +1781,20 @@
17811781
"type": "string",
17821782
"description": "The language in which the source texts in the glossary are specified.",
17831783
"enum": [
1784+
"da",
17841785
"de",
17851786
"en",
17861787
"es",
17871788
"fr",
17881789
"it",
17891790
"ja",
17901791
"ko",
1792+
"nb",
17911793
"nl",
17921794
"pl",
17931795
"pt",
17941796
"ru",
1797+
"sv",
17951798
"zh"
17961799
],
17971800
"example": "en"
@@ -1800,17 +1803,20 @@
18001803
"type": "string",
18011804
"description": "The language in which the target texts in the glossary are specified.",
18021805
"enum": [
1806+
"da",
18031807
"de",
18041808
"en",
18051809
"es",
18061810
"fr",
18071811
"it",
18081812
"ja",
18091813
"ko",
1814+
"nb",
18101815
"nl",
18111816
"pl",
18121817
"pt",
18131818
"ru",
1819+
"sv",
18141820
"zh"
18151821
],
18161822
"example": "de"

openapi.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ info:
77
contact:
88
name: DeepL - Contact us
99
url: https://www.deepl.com/contact-us
10-
version: 2.13.0
10+
version: 2.14.0
1111
externalDocs:
1212
description: DeepL Pro - Plans and pricing
1313
url: https://www.deepl.com/pro#developer?cta=header-prices/
@@ -53,19 +53,22 @@ tags:
5353
If you encounter issues, please let us know at support@DeepL.com.
5454
5555
The DeepL API supports glossaries in any combination of two languages from the following list, enabling a total of
56-
66 possible glossary language pairs:
56+
105 possible glossary language pairs:
5757
58+
- DA (Danish)
5859
- DE (German)
5960
- EN (English)
6061
- ES (Spanish)
6162
- FR (French)
6263
- IT (Italian)
6364
- JA (Japanese)
6465
- KO (Korean)
66+
- NB (Norwegian (bokmål))
6567
- NL (Dutch)
6668
- PL (Polish)
6769
- PT (Portuguese)
6870
- RU (Russian)
71+
- SV (Swedish)
6972
- ZH (Chinese)
7073
7174
The maximum size limit for a glossary is 10 MiB = 10485760 bytes and each source/target text,
@@ -1417,34 +1420,40 @@ components:
14171420
type: string
14181421
description: The language in which the source texts in the glossary are specified.
14191422
enum:
1423+
- da
14201424
- de
14211425
- en
14221426
- es
14231427
- fr
14241428
- it
14251429
- ja
14261430
- ko
1431+
- nb
14271432
- nl
14281433
- pl
14291434
- pt
14301435
- ru
1436+
- sv
14311437
- zh
14321438
example: en
14331439
GlossaryTargetLanguage:
14341440
type: string
14351441
description: The language in which the target texts in the glossary are specified.
14361442
enum:
1443+
- da
14371444
- de
14381445
- en
14391446
- es
14401447
- fr
14411448
- it
14421449
- ja
14431450
- ko
1451+
- nb
14441452
- nl
14451453
- pl
14461454
- pt
14471455
- ru
1456+
- sv
14481457
- zh
14491458
example: de
14501459
OutlineDetectionOption:

openapi_gitbook.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ info:
99
contact:
1010
name: DeepL - Contact us
1111
url: https://www.deepl.com/contact-us
12-
version: 2.13.0
12+
version: 2.14.0
1313
externalDocs:
1414
description: DeepL Pro - Plans and pricing
1515
url: https://www.deepl.com/pro#developer?cta=header-prices/
@@ -40,19 +40,22 @@ tags:
4040
If you encounter issues, please let us know at support@DeepL.com.
4141
4242
The DeepL API supports glossaries in any combination of two languages from the following list, enabling a total of
43-
66 possible glossary language pairs:
43+
105 possible glossary language pairs:
4444
45+
- DA (Danish)
4546
- DE (German)
4647
- EN (English)
4748
- ES (Spanish)
4849
- FR (French)
4950
- IT (Italian)
5051
- JA (Japanese)
5152
- KO (Korean)
53+
- NB (Norwegian (bokmål))
5254
- NL (Dutch)
5355
- PL (Polish)
5456
- PT (Portuguese)
5557
- RU (Russian)
58+
- SV (Swedish)
5659
- ZH (Chinese)
5760
- name: MetaInformation
5861
description: Information about API usage and value ranges
@@ -1261,34 +1264,40 @@ components:
12611264
type: string
12621265
description: The language in which the source texts in the glossary are specified.
12631266
enum:
1267+
- da
12641268
- de
12651269
- en
12661270
- es
12671271
- fr
12681272
- it
12691273
- ja
12701274
- ko
1275+
- nb
12711276
- nl
12721277
- pl
12731278
- pt
12741279
- ru
1280+
- sv
12751281
- zh
12761282
example: en
12771283
GlossaryTargetLanguage:
12781284
type: string
12791285
description: The language in which the target texts in the glossary are specified.
12801286
enum:
1287+
- da
12811288
- de
12821289
- en
12831290
- es
12841291
- fr
12851292
- it
12861293
- ja
12871294
- ko
1295+
- nb
12881296
- nl
12891297
- pl
12901298
- pt
12911299
- ru
1300+
- sv
12921301
- zh
12931302
example: de
12941303
OutlineDetectionOption:

0 commit comments

Comments
 (0)