I have a very simple translation script using Google translate like so:
use Google\Cloud\Translate\TranslateClient;
$translate = new TranslateClient([
'key' => 'xxmyxsuperxsecretxapixkeyxx'
]);
$result = $translate->translate($string, [
'target' => $lang
]);
$translation = $result['text'];
This gives me back a nice array of data like this:
array(4) {
["source"]=> string(2) "en"
["input"]=> string(10) "dummy text"
["text"]=> string(11) "dummer Text"
["model"]=> NULL
}
So the first question is what is $result['model']
in this response?
The second question is, what can I do if I want to get other suggestions like on the actual Google Translate page like this: