Releases: octfx/DeepLy
Releases · octfx/DeepLy
v3.1.4
v3.1.2
v3.0.2
v3.0.1
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');