Releases: DeepLcom/deepl-php
Releases · DeepLcom/deepl-php
v1.10.0
Added
- Added
MODEL_TYPE
option totranslateText()
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
$modelTypeUsed
field totranslateText()
response, that
indicates the translation model used when theMODEL_TYPE
option is
specified.
v1.9.0
Added
- Added
$billedCharacters
to the translate text response.
v1.8.0
v1.7.2
Fixed
- Added a workaround for rare cases that the DeepL API responds with invalid UTF-8 sequences. In these cases the replacement character "�" (U+FFFD) will replace invalid sequences.
- Thanks to VincentLanglet for #43
v1.6.0
Added
- Add optional
context
parameter for text translation, that specifies
additional context to influence translations, that is not translated itself.
Changed
- Added notice in Readme that starting in 2024 the library will drop support for PHP versions that are officially end-of-life.
Version 1.5.1
Fixed
- Add
.gitattributes
file to exclude irrelevant files from package download.- Thanks to VincentLanglet for #30
- Internal CI improvements.
Version 1.5.0
Added
- Allow users to supply their own custom HTTP client to the
Translator
object, in order to configure timeouts, security features etc more granularly.- Thanks to VincentLanglet for the good input and work in #22
- Add curl version to the platform info in the user-agent header (will not be added if the user opts out).
Fixed
- Allow users to translate empty strings without throwing an error.
- Thanks to VincentLanglet for the work in #24
- Catch any exception thrown when computing the user-agent header and continue without failing the request.
v1.4.0
Added
- Script to check our source code for license headers and a step for them in the CI.
- Added platform and node version information to the user-agent string that is sent with API calls, along with an opt-out.
- Add method for applications that use this library to identify themselves in API requests they make.
Fixed
- Fix getUsage request to be a HTTP GET request, not POST.
- Changed document translation to poll the server every 5 seconds. This should greatly reduce observed document translation processing time.
v1.3.0
Added
-
New languages available: Korean (
'ko'
) and Norwegian (bokmål) ('nb'
). Add language code constants and tests.Note: older library versions also support the new languages, this update only adds new code constants.