From 31c3a200610f1c5c77e08ef9d4aea8498efe57c4 Mon Sep 17 00:00:00 2001 From: TangMo Date: Fri, 4 Apr 2025 04:45:12 +0000 Subject: [PATCH] Fix newline support --- src/Commands/GenericmessageCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Commands/GenericmessageCommand.php b/src/Commands/GenericmessageCommand.php index 13986a0..b25ab6a 100644 --- a/src/Commands/GenericmessageCommand.php +++ b/src/Commands/GenericmessageCommand.php @@ -49,6 +49,7 @@ class GenericmessageCommand extends SystemCommand TranslateTextOptions::FORMALITY => 'prefer_less', TranslateTextOptions::MODEL_TYPE => 'prefer_quality_optimized', TranslateTextOptions::TAG_HANDLING => 'html', + TranslateTextOptions::SPLIT_SENTENCES => 'on', ]; try { $glosasaryConfig = json_decode(file_get_contents(__DIR__ . '/../../glossary.json'), true);