Skip to content

Releases: octfx/DeepLy

v3.1.4

17 Nov 13:46
a649872
Compare
Choose a tag to compare
  • Add support for free api keys
  • Update character limit

v3.1.2

06 Oct 10:05
c1ff937
Compare
Choose a tag to compare
  • Add getSupportedLanguages() method
  • Removed supportsLangCode() in favor of supportsSourceLangCode()
    and supportsTargetLangCode()

v3.0.2

04 Aug 10:27
721ca6e
Compare
Choose a tag to compare
Release v3.0.2

Upgrades dependencies

v3.0.1

04 Aug 09:34
18a0437
Compare
Choose a tag to compare

Sets whether the translated text should lean towards formal or informal language.
This feature currently works for all target languages except "ES" (Spanish), "JA" (Japanese) and "ZH" (Chinese).
Possible options are:

  • "default" (default)
  • "more" - for a more formal language
  • "less" - for a more informal language
$apiKey = 'Your-API-Key';
$deepLy = new DeepLy($apiKey);

$deepLy->formality('less');
// or
$translatedText = $deepLy->translate('Hello world!', DeepLy::LANG_EN, DeepLy::LANG_AUTO, 'more');

See https://www.deepl.com/docs-api/translating-text/