Skip to content

Document translation example in README wrong #2

Closed
@JanEbbing

Description

@JanEbbing

The document translation example in the README is currently wrong, the order of arguments is different and a filename needs to be supplied

Wrong:

DeepL.document.translate_document('/path/to/spanish_document.pdf', 'ES', 'EN', '/path/to/translated_document.pdf')

Correct:

DeepL.document.translate_document('/path/to/spanish_document.pdf', '/path/to/translated_document.pdf', 'ES', 'EN', 'spanish_document.pdf')

I am keeping this issue to track this for now, I already have a fix that fixes the README and makes the filename argument optional.

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