Skip to content

Commit

Permalink
BUGFIX: $part is an array, containing "text"
Browse files Browse the repository at this point in the history
  • Loading branch information
gradinarufelix committed May 19, 2024
1 parent f186992 commit 23a33f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Infrastructure/DeepL/DeepLTranslationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function translate(array $texts, string $targetLanguage, ?string $sourceL
}
$translations = array_map(
function ($part) {
return IgnoredTermsUtility::unwrapIgnoredTerms($part);
return IgnoredTermsUtility::unwrapIgnoredTerms($part['text']);
},
$returnedData['translations']
);
Expand Down

0 comments on commit 23a33f1

Please sign in to comment.