Skip to content

Releases: DeepLcom/deepl-php

v1.9.0

17 Sep 09:38
v1.9.0
fdf86cc
Compare
Choose a tag to compare

Added

  • Added $billedCharacters to the translate text response.

v1.8.0

26 Jun 12:25
v1.8.0
13e0477
Compare
Choose a tag to compare

Added

  • Added document minification as a feature before document translation, to allow translation of large docx or pptx files. For more info check the README.

v1.7.2

24 Apr 10:16
v1.7.2
bb52c54
Compare
Choose a tag to compare

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.

v1.6.0

03 Nov 21:12
v1.6.0
2f301d5
Compare
Choose a tag to compare

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

11 Sep 13:34
v1.5.1
732c025
Compare
Choose a tag to compare

Fixed

  • Add .gitattributes file to exclude irrelevant files from package download.
  • Internal CI improvements.

Version 1.5.0

26 Jun 14:44
v1.5.0
bc58ea1
Compare
Choose a tag to compare

Added

  • Allow users to supply their own custom HTTP client to the Translator object, in order to configure timeouts, security features etc more granularly.
  • 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.
  • Catch any exception thrown when computing the user-agent header and continue without failing the request.

v1.4.0

24 May 08:08
v1.4.0
b235af7
Compare
Choose a tag to compare

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

26 Jan 20:35
v1.3.0
d4de3c6
Compare
Choose a tag to compare

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.

v1.2.1

25 Jan 17:21
v1.2.1
1b15cb0
Compare
Choose a tag to compare

Fixed

  • Also send options in API requests even if they are default values.

v1.2.0

01 Dec 15:49
v1.2.0
c49ce2a
Compare
Choose a tag to compare

Changed

  • Added dependency on psr/log. As this package forms a PHP Standard
    Recommendation, we don't consider it to break backward-compatibility.

Fixed

  • Change the type of the TranslatorOptions::LOGGER option to
    Psr\Log\LoggerInterface, to correctly support PSR-3 loggers.