Update engine_wrapper.py

Fixed not sanitizing the text issue that occurs if POSTLANG is set
This commit is contained in:
Muhammed Mustafa Akşam committed 2022-06-30 22:24:19 +03:00
1 parent 2c013caec8
commit 10fe183ac2
1 file changed
+2 -1
+2 -1
View File
@@ -106,5 +106,6 @@ def process_text(text: str):
new_text = sanitize_text(text)
if lang:
print_substep("Translating Text...")
new_text = ts.google(text, to_language=lang)
translated_text = ts.google(text, to_language=lang)
new_text = sanitize_text(translated_text)
return new_text