Closed h9052300 closed 4 months ago
Are you translating FROM chinese or TO chinese?
Translation from English to Chinese. Thx~
Deepl use two chinese options for target language (TO chinese).
Those are zh-Hans
for simplified and zh-Hant
for traditional. Use that instead of zh
, this only works if translation is FROM chinese. I may update the docs soon.
pd: I don't remember if options should be case sensitive, so better write them as it is.
Thank you very much.
from srtranslator.translators.deepl_scrap import DeeplTranslator
translator = DeeplTranslator(driver=driver)
oo = translator.translate("going to pull the small one for auto completion and a big one for actually", 'en', "zh-Hant") print(oo)
translator.quit()
Traceback (most recent call last):
File "C:\Users\user\Desktop\Python Project\flask_view\videoToOOXX\srtranslatorTest.py", line 61, in
How can I adjust it?
@h9052300 I haven't seen this, sry. Do you still have this issue? If so, pls reopen
Timed out trying to get element (XPATH = //button[@data-testid='translator-lang-option-zh'] | //button[text()='Chinese'])