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 48fe8df commit 8e0e318Copy full SHA for 8e0e318
i18n/controllers/recurTranslate.ts
@@ -30,6 +30,10 @@ const ignoredTags = [
30
31
const MAXLEN = Number(process.env.MAX_LEN) || 3000;
32
33
+// change to true to avoid calling openai api, useful for troubleshooting
34
+// chunking logic
35
+const troubleshoot = false;
36
+
37
// Centralized logging to prevent duplicate messages
38
const errorMessages = new Set();
39
// Track errors by file for summary reporting
@@ -404,7 +408,7 @@ async function recursivelyTranslate(
404
408
}
405
409
406
410
async function translateChunk(chunk: string): Promise<string> {
407
- return chunk;
411
+ if (troubleshoot) return chunk;
412
if (chunk.trim() === "" || chunk.trim() === "," || chunk.trim() === ".") {
413
return chunk;
414
0 commit comments