deep-translator
deep-translator copied to clipboard
Bug in Yandex Translator `translate` method
- deep_translator version: 1.11.4
- Python version: 3.10
- Operating System: Mac OS M2
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"]
to return response["text"][0]
in file $DIRECTORY/deep_translator/yandex.py
Thanks for noticing this. Do you want to open a fix PR for it?