Skip to content

Commit c23e68f

Browse files
committed
docs: Clarify README section for document minification
1 parent 7def9db commit c23e68f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ using the following keys:
213213

214214
- `formality`: same as in [Text translation options](#text-translation-options).
215215
- `glossary`: same as in [Text translation options](#text-translation-options).
216-
- `minification`: A `bool` value. If set to `true`, the library will try to minify a document before translating it through the API, sending a smaller document if the file contains a lot of media. This is currently only supported for `pptx` files. See also [Document minification](#document-minification). Note that this only works in the high-level `translateDocument` method, not `uploadDocument`.
216+
- `minification`: A `bool` value. If set to `true`, the library will try to minify a document before translating it through the API, sending a smaller document if the file contains a lot of media. This is currently only supported for `pptx` files. See also [Document minification](#document-minification). Note that this only works in the high-level `translateDocument` method, not `uploadDocument`. However, the behavior can be emulated by creating a new `DocumentMinifier` object and calling the minifier's methods in between.
217217

218218
The `uploadDocument` function also supports these options.
219219

0 commit comments

Comments
 (0)