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

Document translation example in README wrong #2

Closed
JanEbbing opened this issue Sep 20, 2024 · 1 comment
Closed

Document translation example in README wrong #2

JanEbbing opened this issue Sep 20, 2024 · 1 comment

Comments

@JanEbbing
Copy link
Member

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.

@JanEbbing
Copy link
Member Author

Fixed in 3.0.1

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