clean up preservations scope in translation functions
This commit is contained in:
parent
7d3e7ec111
commit
99bdb1c6f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue