Skip to content

Releases: DeepLcom/deepl-php

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.

v1.1.0

29 Sep 13:26
v1.1.0
bb6ab74
Compare
Choose a tag to compare

Added

  • Add new formality options: 'prefer_less' and 'prefer_more'.

Changed

  • Requests resulting in 503 Service Unavailable errors are now retried.
    Attempting to download a document before translation is completed will now
    wait and retry (up to 5 times by default), rather than throwing an exception.

v0.4.1

20 Sep 10:32
v0.4.1
9425afb
Compare
Choose a tag to compare

Changed

  • Update contributing guidelines, we can now accept Pull Requests.

Fixed

  • Fix GitLab CI config.
  • Fix a typo in the readme.