You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document translation does not support xml files, you would need to send it as a text translation request by using XML tag handling. See docs for document translation and XML tag handling (or check the README of this project regarding tag handling).
Edit: That said, we support HTML - I will check with the team if we can expand coverage here.
When trying to translate an xml document using the translate_document_from_filepath method an error is returned.
Bad request, message: Failed to get the document_type from the file extension (test.xml).
The text was updated successfully, but these errors were encountered: