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)
| Parameter | Type | Description |
|---|---|---|
| sourceDocument | Document | The document to be translated. |
| targetLanguage | Language | The language into which the document will be translated. |
Returns
A new Document object containing the translated document.
See Also
- module Aspose.Words.AI
- class AnthropicAiModel