Releases: DeepLcom/deepl-rb
Releases · DeepLcom/deepl-rb
v3.6.1
Fixed
- Fixed broken 3.6.0 release
From 3.6.0:
Added
- Added
tag_handling_versionparameter totranslate()to specify which version of the tag handling algorithm to use. Options arev1andv2.
Fixed
extra_body_parameterswill no longer cast values to string, as this library sends JSON-encoded requests
(allows e.g. sending booleans)
v3.5.1
Fixed
- Fixed broken 3.5.0 release
From 3.5.0:
Added
- Added
custom_instructionsparameter totranslate()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,zhand their variants.
Note: using thecustom_instructionsparameter will use thequality_optimized
model type as the default. Requests combiningcustom_instructionsand the
latency_optimizedmodel type will be rejected.
v3.4.1
Fixed
- Fixed broken 3.4.0 release
From 3.4.0:
Added
- Added support for the
GET /v3/style_rulesendpoint in the client library, the
implementation can be found in theStyleRuleApiclass. Please refer to the
README for usage instructions - Added
style_idoption totranslate()which allows text translation with
style rules.
Fixed
- Send correct library version in user-agent. Expose library version in the module as a variable.
v3.5.0
[3.5.0] - 2025-12-03
Added
- Added
custom_instructionsparameter totranslate()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,zhand their variants. Note: using thecustom_instructionsparameter will use thequality_optimizedmodel type as the default. Requests combiningcustom_instructionsand thelatency_optimizedmodel type will be rejected.
v3.3.0
Added
- Added
extra_body_parametersoption 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.). - Added
rephrasefunctionality to the top-levelDeepLmodule for convenience.
v3.2.0
v3.1.0
Added
-
Added
model_typeoption totranslate()to use models with higher
translation quality (available for some language pairs), or better latency.
Options are'quality_optimized','latency_optimized', and'prefer_quality_optimized' -
Added the
model_type_usedfield to thetranslate()response, that
indicates the translation model used when themodel_typeoption is
specified.
v3.0.2
v3.0.1
v3.0.0
Beginning with version 3, deepl-rb is officially supported by DeepL, and maintained together with Daniel Herzog the developer of earlier versions of this library.
The change in major version is only due to the change in maintainership, there is no migration necessary from v2 to v3.
Added
- Added rubocop-rspec linting for rspec test files
- Added document translation to the ruby CL
- Added possibility to use one HTTP session for multiple calls
- Added platform and ruby version information to the user-agent string that is sent with API calls, along with an opt-out
- Added support for logging of HTTP requests
- Added support for using a proxy and a custom certificate file
- Added a gitlab CI pipeline
Changed
- HTTP requests to the DeepL API now use
application/json, rather thanapplication/www-form-unencoded - HTTP requests now automatically retry on transient failures, using exponential backoff
Deprecated
Removed
- Removed CircleCI and CodeCov upload