diff --git a/Core/src/ServiceBuilder.php b/Core/src/ServiceBuilder.php index f488a6082dd..aa994bbbd9d 100644 --- a/Core/src/ServiceBuilder.php +++ b/Core/src/ServiceBuilder.php @@ -364,7 +364,7 @@ public function vision(array $config = []) public function translate(array $config = []) { if (class_exists(DeprecatedTranslateClient::class)) { - return $this->createClient(TranslateClient::class, 'translate', $config); + return $this->createClient(DeprecatedTranslateClient::class, 'translate', $config); } throw new \BadMethodCallException(sprintf( 'This method is no longer supported, create %s directly instead.'.