livehelperchat
livehelperchat copied to clipboard
forum -> [+user: pkedpker ] Microsoft Translator has moved and now requires new API
trafficstars
https://forum.livehelperchat.com/viewtopic.php?id=2962
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
I think this was done.