We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fe5cd1 commit a0f4a83Copy full SHA for a0f4a83
src/GoogleTranslate.php
@@ -501,7 +501,8 @@ public function languages(?string $target = null): array
501
public function localizedLanguages(string $target): array
502
{
503
$menu = 'sl'; // 'tl';
504
- $url = "https://translate.google.com/m?mui=$menu&hl=$target";
+ $url = parse_url($this->url);
505
+ $url = $url['scheme'].'://'.$url['host']."/m?mui=$menu&hl=$target";
506
507
try {
508
$response = $this->client->get($url, $this->options);
0 commit comments