From a2a786040ee07e1c609af69be86372db1fa2e10f Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Fri, 11 Jul 2025 20:24:50 -0400 Subject: [PATCH] remove preservations references from translateTextRaw function --- src/translation.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/translation.js b/src/translation.js index 2d1b9c1..ccefb73 100644 --- a/src/translation.js +++ b/src/translation.js @@ -330,21 +330,15 @@ ${preservedText}`; console.log("Token breakdown:", tokenInfo.breakdown); // Debug logging - console.log("=== TRANSLATION DEBUG ==="); + console.log("=== RAW TRANSLATION DEBUG ==="); console.log( - "Original text:", + "Input text:", text.substring(0, 300) + (text.length > 300 ? "..." : ""), ); console.log( "Preserved text:", preservedText.substring(0, 300) + (preservedText.length > 300 ? "..." : ""), ); - console.log("Preservations found:", preservations.length); - preservations.forEach((item, index) => { - console.log( - ` ${index}: ${item.placeholder} -> ${item.content.substring(0, 50)}${item.content.length > 50 ? "..." : ""}`, - ); - }); // Use minimal system message for translation - focused purely on the task const translationHistory = [