clean up preservations scope in translation functions

This commit is contained in:
Russell Ballestrini 2025-07-11 20:22:30 -04:00
parent 7d3e7ec111
commit 99bdb1c6f8

View file

@ -400,7 +400,7 @@ export async function translateText(text, targetLanguage) {
// Use raw translation function
const translatedText = await translateTextRaw(preservedText, targetLanguage);
// Check if placeholders are still in the response
// Check if placeholders are still in the response
preservations.forEach((item, _index) => {
const found = translatedText.includes(item.placeholder);
console.log(