Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,11 @@ that case the input file name (or extension) is required, so the DeepL API can
determine the file type:
```c#
...
using var outputFile = File.OpenWrite(outputDocumentPath);
await client.TranslateDocumentAsync(
new MemoryStream(buffer),
"Input file.docx", // An extension like ".docx" is also sufficient
File.OpenWrite(outputDocumentPath),
outputFile,
"EN",
"DE",
new DocumentTranslateOptions { Formality = Formality.More });
Expand Down
Loading