translate method

translate(sourceDocument, targetLanguage)

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

translate(sourceDocument: Aspose.Words.Document, targetLanguage: Aspose.Words.AI.Language)
ParameterTypeDescription
sourceDocumentDocumentThe document to be translated.
targetLanguageLanguageThe language into which the document will be translated.

Returns

A new Document object containing the translated document.

See Also