Skip to content

Releases: DeepL/deepl-java

v1.17.0

Choose a tag to compare

@BriannaDelgado BriannaDelgado released this 12 Aug 01:35
v1.17.0
31e4a3d

Added

  • Added support for using multiple glossaries in text and document translation
    via setGlossaryIds()/setGlossaries() (up to 5 glossaries) in
    TextTranslationOptions and DocumentTranslationOptions.
  • Added support for style rules in document translation via
    setStyleRule()/setStyleId() in DocumentTranslationOptions.
  • Added support for translation memories in document translation via
    setTranslationMemory()/setTranslationMemoryId()/setTranslationMemoryThreshold()
    in DocumentTranslationOptions.
  • Added support for the translation memory management endpoints in the
    DeepLClient class: getTranslationMemory(),
    listTranslationMemorySegments(), deleteTranslationMemory(),
    createTranslationMemoryImport(), uploadTranslationMemoryFile(),
    createTranslationMemoryExport(), getTranslationMemoryJob(),
    waitUntilTranslationMemoryJobDone(), downloadTranslationMemoryExport(),
    importTranslationMemoryFromFilepath() and
    exportTranslationMemoryToFilepath().
  • Added creationTime and updatedTime to TranslationMemoryInfo.
  • Added optional timeouts to waitUntilTranslationMemoryJobDone(),
    importTranslationMemoryFromFilepath() and
    exportTranslationMemoryToFilepath().

Fixed

  • Fixed waitUntilTranslationMemoryJobDone() throwing when a translation memory
    job reports AwaitingInput. 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

Choose a tag to compare

@BriannaDelgado BriannaDelgado released this 09 Apr 18:38
v1.16.0
9c41d7e

Added

  • Added support for translation memories in text translation via
    setTranslationMemoryId() and setTranslationMemoryThreshold() in
    TextTranslationOptions.
  • Added listTranslationMemories() method to the DeepLClient class 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

Choose a tag to compare

@BriannaDelgado BriannaDelgado released this 26 Mar 20:04
v1.15.0
424aad4

Added

  • Added JSON request body support to HttpContent and HttpClientWrapper, enabling
    JSON-encoded API calls via sendJsonRequestWithBackoff() and sendJsonPatchRequestWithBackoff().
  • Added support for style rules CRUD endpoints in the DeepLClient class:
    createStyleRule(), getStyleRule(), updateStyleRuleName(),
    updateStyleRuleConfiguredRules(), and deleteStyleRule().
  • Added support for style rule custom instruction CRUD endpoints in the
    DeepLClient class: createStyleRuleCustomInstruction(),
    getStyleRuleCustomInstruction(), updateStyleRuleCustomInstruction(),
    and deleteStyleRuleCustomInstruction().
    Please refer to the README for usage instructions.

v1.14.0

Choose a tag to compare

@BriannaDelgado BriannaDelgado released this 21 Jan 17:00
e91115a

Added

  • Added setTagHandlingVersion() method to TextTranslationOptions to specify which version of the tag handling algorithm to use. Options are v1 and v2.

v1.13.0

Choose a tag to compare

@BriannaDelgado BriannaDelgado released this 08 Dec 21:27
v1.13.0
b0b941a

Added

  • Added setCustomInstructions() method to TextTranslationOptions to customize translation behavior with up to 10 instructions (max 300 characters each). Only supported for target languages: de, en, es, fr, it, ja, ko, zh and their variants. Note: using the custom instructions parameter will use quality_optimized model type as the default. Requests combining custom instructions and the latency_optimized model type will be rejected.

v1.12.0

Choose a tag to compare

@BriannaDelgado BriannaDelgado released this 12 Nov 19:01
v1.12.0
ef09094
  • Added support for the GET /v3/style_rules endpoint in the client library, the
    implementation can be found in the DeepLClient class. Please refer to the
    README for usage instructions
  • Added styleId option to translateText() which allows text translation with
    style rules.

v1.11.0

Choose a tag to compare

@daniel-jones-dev daniel-jones-dev released this 05 Nov 08:13

Added

  • Added extraRequestParameters option 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 as target_lang, source_lang, etc.).

v1.10.3

Choose a tag to compare

@daniel-jones-dev daniel-jones-dev released this 22 Aug 14:24
c84587e

Security

v1.10.2

Choose a tag to compare

@daniel-jones-dev daniel-jones-dev released this 22 Aug 14:23
466cfbe

Changed

  • Migrate to Sonatype Portal OSSRH Staging API due to legacy OSSRH being sunsetted.
  • Whitespace surrounding auth key is now stripped.

v1.10.1

Choose a tag to compare

@JanEbbing JanEbbing released this 19 Jun 10:48
v1.10.1
dd3b6dc

Fixed

  • Fixed DeepLClient::deleteMultilingualGlossary(String glossaryId) being package private, made it public instead.