Skip to content

Commit 065ba49

Browse files
modrictinusox
authored andcommitted
fix: send non_splitting_tags and ignore_tags as arrays in JSON payloads
Note: other request handlers (e.g., DeepBatchTranslationRequestHandler) and tests may still contain similar issues. This commit does not address those.
1 parent df03ebc commit 065ba49

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Handler/DeeplTranslationRequestHandler.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,8 @@ public function getBody(): StreamInterface
4848
self::SEPARATOR,
4949
$this->translation->getTagHandling(),
5050
),
51-
'non_splitting_tags' => implode(
52-
self::SEPARATOR,
53-
$this->translation->getNonSplittingTags(),
54-
),
55-
'ignore_tags' => implode(self::SEPARATOR, $this->translation->getIgnoreTags()),
51+
'non_splitting_tags' => $this->translation->getNonSplittingTags(),
52+
'ignore_tags' => $this->translation->getIgnoreTags(),
5653
'split_sentences' => $this->translation->getSplitSentences(),
5754
'preserve_formatting' => $this->translation->getPreserveFormatting(),
5855
'glossary_id' => $this->translation->getGlossaryId(),

0 commit comments

Comments
 (0)