Open
Description
If the text to be translated includes \r or \n, the error occurs when using google platform. This is because the code in translate_google.py does not match \r or \n.
Add "| re.DOTALL" in line 56 to fix this problem.
target_text = re.findall(r'id="tw-answ-target-text">(.*?)', res_text, flags=re.IGNORECASE | re.DOTALL)
Metadata
Metadata
Assignees
Labels
No labels