deepl-python icon indicating copy to clipboard operation
deepl-python copied to clipboard

Request - Be able to translate large XML documents

Open matsbert opened this issue 3 months ago • 0 comments

I translate lots of XML files. The only way to effectively translate XML files today is to use translate_text with the 'xml' option.

It would be extremely helpful to be able to have call like translate_document that is able to upload the document is parts then translates the document and assembles the returned document correctly.

The API call translate_text is only able to upload and translate a rather rather small piece of text (128Kb).

Translating large amounts of XML files then becomes cumbersome when many of the files exceed the file size that translate_text can handle.

Is this something that is on the roadmap? Otherwise it would be helpful to hear what other people are doing.

Perhaps I do need to write a piece of software that splits larger XML files into logical pieces and the assembles them after translation. It is just something I would rather not do.

Thanks

matsbert avatar Sep 01 '25 12:09 matsbert