Skip to content

Deepl doesn't work #276

Open
Open
@Simanas

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions