Closed cihanbagdatli closed 3 years ago
Hi, If you want to detect language auto.
$source = 'tr'; $target = 'en'; $text = "türkçe"; $trans = new GoogleTranslate(); echo $trans->translate($source, $target, $text);
For Example Detect:
$source = 'auto'; $target = 'en'; $text = "türkçe"; $trans = new GoogleTranslate(); echo $trans->translate($source, $target, $text);
after result echo: english
Thanks so much forever.
You can pass auto as source language and it should work
auto
Hi, If you want to detect language auto.
For Example Detect:
after result echo: english
Thanks so much forever.