Releases: DeepL/deepl-java
Releases · DeepL/deepl-java
Release list
v1.17.0
Added
- Added support for using multiple glossaries in text and document translation
viasetGlossaryIds()/setGlossaries()(up to 5 glossaries) in
TextTranslationOptionsandDocumentTranslationOptions. - Added support for style rules in document translation via
setStyleRule()/setStyleId()inDocumentTranslationOptions. - Added support for translation memories in document translation via
setTranslationMemory()/setTranslationMemoryId()/setTranslationMemoryThreshold()
inDocumentTranslationOptions. - Added support for the translation memory management endpoints in the
DeepLClientclass:getTranslationMemory(),
listTranslationMemorySegments(),deleteTranslationMemory(),
createTranslationMemoryImport(),uploadTranslationMemoryFile(),
createTranslationMemoryExport(),getTranslationMemoryJob(),
waitUntilTranslationMemoryJobDone(),downloadTranslationMemoryExport(),
importTranslationMemoryFromFilepath()and
exportTranslationMemoryToFilepath(). - Added
creationTimeandupdatedTimetoTranslationMemoryInfo. - Added optional timeouts to
waitUntilTranslationMemoryJobDone(),
importTranslationMemoryFromFilepath()and
exportTranslationMemoryToFilepath().
Fixed
- Fixed
waitUntilTranslationMemoryJobDone()throwing when a translation memory
job reportsAwaitingInput. An import job keeps reporting that status for a
while after its file has been uploaded, because the API detects the upload
asynchronously, so it is now polled through like any other non-terminal
status. - Fixed incorrect example texts in the test suite for several languages (Danish,
Indonesian, Japanese, Portuguese, and Russian) to match the mock server.
v1.16.0
Added
- Added support for translation memories in text translation via
setTranslationMemoryId()andsetTranslationMemoryThreshold()in
TextTranslationOptions. - Added
listTranslationMemories()method to theDeepLClientclass for
listing available translation memories.
Fixed
- Fixed GitLab release job using wrong image by explicitly setting
image: registry.gitlab.com/gitlab-org/release-cli:latest.
v1.15.0
Added
- Added JSON request body support to
HttpContentandHttpClientWrapper, enabling
JSON-encoded API calls viasendJsonRequestWithBackoff()andsendJsonPatchRequestWithBackoff(). - Added support for style rules CRUD endpoints in the
DeepLClientclass:
createStyleRule(),getStyleRule(),updateStyleRuleName(),
updateStyleRuleConfiguredRules(), anddeleteStyleRule(). - Added support for style rule custom instruction CRUD endpoints in the
DeepLClientclass:createStyleRuleCustomInstruction(),
getStyleRuleCustomInstruction(),updateStyleRuleCustomInstruction(),
anddeleteStyleRuleCustomInstruction().
Please refer to the README for usage instructions.
v1.14.0
Added
- Added
setTagHandlingVersion()method toTextTranslationOptionsto specify which version of the tag handling algorithm to use. Options arev1andv2.
v1.13.0
Added
- Added
setCustomInstructions()method toTextTranslationOptionsto customize translation behavior with up to 10 instructions (max 300 characters each). Only supported for target languages:de,en,es,fr,it,ja,ko,zhand their variants. Note: using the custom instructions parameter will usequality_optimizedmodel type as the default. Requests combining custom instructions and thelatency_optimizedmodel type will be rejected.
v1.12.0
- Added support for the
GET /v3/style_rulesendpoint in the client library, the
implementation can be found in theDeepLClientclass. Please refer to the
README for usage instructions - Added
styleIdoption totranslateText()which allows text translation with
style rules.
v1.11.0
Added
- Added
extraRequestParametersoption to text and document translation methods to pass arbitrary parameters in the request body. This can be used to access beta features or override built-in parameters (such astarget_lang,source_lang, etc.).
v1.10.3
Security
- Updated
org.apache.httpcomponents:httpclientto 4.5.14 due to CVE-2020-13956.