diff --git a/Classes/Infrastructure/DeepL/DeepLTranslationService.php b/Classes/Infrastructure/DeepL/DeepLTranslationService.php index b8227e4..e4f3a5c 100644 --- a/Classes/Infrastructure/DeepL/DeepLTranslationService.php +++ b/Classes/Infrastructure/DeepL/DeepLTranslationService.php @@ -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'] );