We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4922e98 commit 9f21e76Copy full SHA for 9f21e76
i18n/controllers/recurTranslate.ts
@@ -90,8 +90,9 @@ async function recursivelyTranslate(
90
if (subIsRecording) {
91
subCurrentSegment += `${text}`;
92
} else {
93
- if (text == "\n " || text == "\r\n " || text == ", \n" || text == ", \r\n") {
94
- subSegments.push([false, text]);
+ if (subSegments.length > 0 && subSegments[subSegments.length - 1][1] != undefined) {
+ subSegments[subSegments.length - 1][1] += text;
95
+ subSegments[subSegments.length - 1][0] = true;
96
97
subSegments.push([true, text]);
98
}
0 commit comments