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

fixed Linguee translate() #179

Merged
merged 1 commit into from
Jan 19, 2023
Merged

Conversation

wf001
Copy link
Contributor

@wf001 wf001 commented Jan 9, 2023

Fixed issue about Linguee

  • deep_translate/linguee.py::translate() fixed to use the latest endpoint.
  • Test for Linguee updated.
  • README.rst updated.

works as following.

>>> from deep_translator import LingueeTranslator
>>> LingueeTranslator(source="german", target="english").translate("laufen", return_all=False)
'run'
>>> LingueeTranslator(source="french", target="english").translate("courir", return_all=False)
'run'
>>> LingueeTranslator(source="english", target="german").translate("run", return_all=False)
'laufen'
>>> LingueeTranslator(source="english", target="french").translate("run", return_all=False)
'fonctionner'
>>> LingueeTranslator(source="english", target="spanish").translate("run", return_all=False)
'correr'

@nidhaloff nidhaloff merged commit 5eb9128 into nidhaloff:master Jan 19, 2023
@nidhaloff
Copy link
Owner

Thanks

@nidhaloff nidhaloff added the fix for bug or small fixes label Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix for bug or small fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linguee French-to-English translation not working
2 participants