livehelperchat icon indicating copy to clipboard operation
livehelperchat copied to clipboard

forum -> [+user: pkedpker ] Microsoft Translator has moved and now requires new API

Open PeopleInside opened this issue 7 years ago • 1 comments
trafficstars

https://forum.livehelperchat.com/viewtopic.php?id=2962

PeopleInside avatar Apr 18 '18 11:04 PeopleInside

Can you please add the Yandex translation service as it's the only free translation service left.

Here is the Yandex api i found from github

use Yandex\Translate\Translator;
use Yandex\Translate\Exception;

try {
  $translator = new Translator($key);
  $translation = $translator->translate('Hello world', 'en-ru');

  echo $translation; // Привет мир

  echo $translation->getSource(); // Hello world;

  echo $translator->detect("Привет мир"); //ru

  echo $translation->getSourceLanguage(); // en
  echo $translation->getResultLanguage(); // ru
} catch (Exception $e) {
  // handle exception
}

Here are the classes classes src

Here is to get Yandex free API Key free api key

fatrolls avatar Apr 27 '18 19:04 fatrolls

I think this was done.

remdex avatar Sep 11 '23 12:09 remdex