translateInternal

open suspend override fun translateInternal(sourceLanguage: TranslateLanguage, targetLanguage: TranslateLanguage, text: String): TranslationResult

Internal method that performs the actual translation from one language to another. This method is used by the translate method and is not meant to be called directly by consumers.

Return

A TranslationResult object containing the translation result.

Parameters

sourceLanguage

The source language.

targetLanguage

The target language.

text

The text to translate.