deep-translator icon indicating copy to clipboard operation
deep-translator copied to clipboard

Deepl doesn't work

Open Simanas opened this issue 4 months ago • 0 comments

  • 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.

Simanas avatar Oct 17 '24 09:10 Simanas