PHP code example of melk / bing-translation
1. Go to this page and download the library: Download melk/bing-translation library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
melk / bing-translation example snippets
$bingTranslator = $this->get('melk_bing_translation.translator');
$commentLocale = $bingTranslator->detectLanguage($comment);
$translated = $bingTranslator->translate($comment, $commentLocale, $toLocale);