Open RodionfromHSE opened 10 months ago
Yandex Translator translate method returns a list, not a str.
To fix it change return statement on line 142 in current version from return response["text"] to return response["text"][0] in file $DIRECTORY/deep_translator/yandex.py
return response["text"]
return response["text"][0]
$DIRECTORY/deep_translator/yandex.py
Thanks for noticing this. Do you want to open a fix PR for it?
Description
Yandex Translator translate method returns a list, not a str.
What I Did
To fix it change return statement on line 142 in current version from
return response["text"]
toreturn response["text"][0]
in file$DIRECTORY/deep_translator/yandex.py