Skip to content

Commit

Permalink
[FEATURE] Make glossaries work with autodetection
Browse files Browse the repository at this point in the history
  • Loading branch information
kauz56 committed Aug 20, 2024
1 parent c1a36ed commit cfcb4e0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Classes/Service/DeeplTranslationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ public function translateText(string $text, string $sourceLanguage, string $targ
}
[$sourceLanguageForGlossary] = explode('-', $sourceLanguage);
[$targetLanguageForGlossary] = explode('-', $targetLanguage);

$glossary = $this->configuration->getGlossaryForLanguagePair($sourceLanguageForGlossary, $targetLanguageForGlossary);
if ($glossary) {
$options[TranslateTextOptions::GLOSSARY] = $glossary;
Expand Down

0 comments on commit cfcb4e0

Please sign in to comment.