Aspose::Words::AI::IAiModelText::Translate method

IAiModelText::Translate method

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

virtual System::SharedPtr<Aspose::Words::Document> Aspose::Words::AI::IAiModelText::Translate(System::SharedPtr<Aspose::Words::Document> sourceDocument, Aspose::Words::AI::Language targetLanguage)=0
ParameterTypeDescription
sourceDocumentSystem::SharedPtr<Aspose::Words::Document>The document to be translated.
targetLanguageAspose::Words::AI::LanguageThe language into which the document will be translated.

ReturnValue

A new Document object containing the translated document.

See Also