From e612fb7414b7e67187809c6237d738edba0f1c2d Mon Sep 17 00:00:00 2001 From: Luca Racchetti Date: Thu, 18 Jun 2020 21:41:18 +0200 Subject: [PATCH] Update URL and client --- src/GoogleTranslate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GoogleTranslate.php b/src/GoogleTranslate.php index eec6946..b8bc06b 100644 --- a/src/GoogleTranslate.php +++ b/src/GoogleTranslate.php @@ -42,7 +42,7 @@ class GoogleTranslate /** * @var string Google Translate URL base */ - protected $url = 'https://translate.google.com/translate_a/single'; + protected $url = 'https://translate.googleapis.com/translate_a/single'; /** * @var array Dynamic GuzzleHttp client options @@ -53,7 +53,7 @@ class GoogleTranslate * @var array URL Parameters */ protected $urlParams = [ - 'client' => 'webapp', + 'client' => 'gtx', 'hl' => 'en', 'dt' => [ 't', // Translate