Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in Yandex Translator translate method #256

Open
RodionfromHSE opened this issue Jan 7, 2024 · 1 comment
Open

Bug in Yandex Translator translate method #256

RodionfromHSE opened this issue Jan 7, 2024 · 1 comment

Comments

@RodionfromHSE
Copy link

  • 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

@nidhaloff
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants