Skip to content

Commit

Permalink
You do not need to pass $this->sourceLanguage to GoogleTranslate
Browse files Browse the repository at this point in the history
  • Loading branch information
timoye authored Jul 30, 2024
1 parent 7ef311e commit 8b31883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drivers/Translation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8b31883

Please sign in to comment.