Property | Type | Description | |
---|---|---|---|
$bingTranslator | |||
$default_language |
Method | Description | |
---|---|---|
__construct ( array $config ) | ||
translate ( string $word, string $toLang, null $fromLang = null ) : null | string |
public translate ( string $word, string $toLang, null $fromLang = null ) : null | string | ||
$word | string | Sentence or word to translate |
$toLang | string | Target language |
$fromLang | null | Source language (if set to null, translator will try to guess) |
return | null | string | The translated sentence or null if an error occurs |