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

Deepl doesn't work #276

Open
Simanas opened this issue Oct 17, 2024 · 0 comments
Open

Deepl doesn't work #276

Simanas opened this issue Oct 17, 2024 · 0 comments

Comments

@Simanas
Copy link

Simanas commented Oct 17, 2024

  • deep_translator version: 1.11.4
  • Python version: 3.8.10
  • Operating System: Ubuntu

Description

Tried using django-deep-translator, with Deepl backend, however it doesn't work due to wrong Deepl API implementation on this package.

What I Did

./manage.py translate_messages -l pl

raises error: deep_translator.exceptions.AuthorizationException: Unauthorized access with the api key 6d91d25b-8aae-a083-dca5-d8e78a74d9cc

Possible fix

After quick investigation I have found that current DeepL API uses authorization in request header. https://github.com/DeepLcom/deepl-python/blob/main/deepl/translator.py

While this package is trying to add it to a request itself.

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

1 participant