translate method

translate(source_document, target_language)

Translates the provided document into the specified target language. This operation leverages the connected AI model for content translating.

def translate(self, source_document: aspose.words.Document, target_language: aspose.words.ai.Language):
    ...
ParameterTypeDescription
source_documentDocumentThe document to be translated.
target_languageLanguageThe language into which the document will be translated.

Returns

A new Document object containing the translated document.

See Also