Skip to content

Commit

Permalink
Update TranslateDCA.php
Browse files Browse the repository at this point in the history
remove debug
  • Loading branch information
gebi84 authored Jul 11, 2023
1 parent 83a628b commit 7dc04ad
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Translate/TranslateDCA.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ public function translateModel(Model $model, $fromLang, $toLang): void
public function translate(?string $value, string $fromLang, string $toLang): ?string
{
if (!empty($value)) {
return $value . '.Translate';
$translateResponse = $this->deeplApi->translate($value, $fromLang, $toLang);
if (isset($translateResponse['translations'][0]['text'])) {
$value = $translateResponse['translations'][0]['text'];
Expand Down

0 comments on commit 7dc04ad

Please sign in to comment.