Aldi My Teacher is Google and Stackoverflow. #Hanya Berbagi Sedikit Ilmu dan Pemahaman.

API Gratis Google Translate

12 sec read

informasi min

Kamu Dapat menggunakan api google translate  dari Github Berikut :

https://github.com/Stichoza/google-translate-php

Contoh Cooding :

$tr = new GoogleTranslate(); // Translates to 'en' from auto-detected language by default
           $tr->setSource('en'); // Translate from English
           $tr->setSource(); // Detect language automatically
           $tr->setTarget('id'); // Translate to Georgian

           echo $tr->translate('hello world');

Output :

Halo Dunia

Aldi My Teacher is Google and Stackoverflow. #Hanya Berbagi Sedikit Ilmu dan Pemahaman.

Leave a Reply

Your email address will not be published. Required fields are marked *