From 8b31883ec892bf3400c01a6137aca0061e6d3cd9 Mon Sep 17 00:00:00 2001 From: Timothy Soladoye Date: Tue, 30 Jul 2024 21:39:41 +0200 Subject: [PATCH] You do not need to pass $this->sourceLanguage to GoogleTranslate --- src/Drivers/Translation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Drivers/Translation.php b/src/Drivers/Translation.php index c8e1a19..e1d8bd2 100644 --- a/src/Drivers/Translation.php +++ b/src/Drivers/Translation.php @@ -78,7 +78,7 @@ public function autoTranslate($language = false) * @throws \ErrorException */ public function getGoogleTranslate($language,$token){ - $tr = new GoogleTranslate($language, $this->sourceLanguage); + $tr = new GoogleTranslate($language); return $tr->translate($token); }