Aspose::Words::AI::OpenAiModel::Translate method

OpenAiModel::Translate method

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

System::SharedPtr<Aspose::Words::Document> Aspose::Words::AI::OpenAiModel::Translate(System::SharedPtr<Aspose::Words::Document> sourceDocument, Aspose::Words::AI::Language targetLanguage) override
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