Skip to content

Can't enable beta languages with the library? #150

Closed

Description

@lunolunoluno

I might be missing something but it seems like it is not possible to enable beta languages with this library.
In the documentation an enable_beta_languages is mentioned however it doesn't seems like it can be enabled using the library.

Can this parameter be enabled somewhere else or should I use the requests library and pass that parameter in the request instead?

Python version: 3.14
deepl-python version: 1.25.0

Activity

  1. JanEbbing commented on Nov 24, 2025

    @JanEbbing
    Contributor

    You can use the extra_body_parameters to pass in e.g. enable_beta_languages as follows:

    import deepl
    
    auth_key = "f63c02c5-f056-..."  # Replace with your key
    deepl_client = deepl.DeepLClient(auth_key)
    
    deepl_client.translate_text("How are you?", target_lang="ACE", extra_body_parameters={"enable_beta_languages":True})

    We have not added a specific enable_beta_languages parameter to the client libraries.

  2. lunolunoluno commented on Nov 24, 2025

    @lunolunoluno
    Author
    import deepl
    
    deepl_client.translate_text("How are you?", target_lang="MT", extra_body_parameters={"enable_beta_languages":True})

    (small corrections from the answer given)

    Thanks it works!

  3. JanEbbing commented on Nov 24, 2025

    @JanEbbing
    Contributor

    Thanks, too much JS recently, and there are apparently a few typos in the readme for this... :(

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions