diff --git a/src/GoogleTranslate.php b/src/GoogleTranslate.php index 2037255..e4c3465 100644 --- a/src/GoogleTranslate.php +++ b/src/GoogleTranslate.php @@ -150,6 +150,18 @@ public function setUrl(string $url): self return $this; } + /** + * Set Google Translate client param (webapp, gtx, etc.) + * + * @param string $client Google Translate client param (webapp, gtx, etc.) + * @return GoogleTranslate + */ + public function setClient(string $client): self + { + $this->urlParams['client'] = $client; + return $this; + } + /** * Set GuzzleHttp client options. *