nidhaloff / deep-translator

A flexible free and unlimited python tool to translate between different languages in a simple way using multiple translators.
https://deep-translator.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
1.61k stars 186 forks source link

Bug in Yandex Translator `translate` method #256

Open RodionfromHSE opened 10 months ago

RodionfromHSE commented 10 months ago

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

nidhaloff commented 9 months ago

Thanks for noticing this. Do you want to open a fix PR for it?