translate

suspend fun translate(vararg texts: String, to: TargetLang, from: SourceLang? = null, options: TranslateOptions = TranslateOptions()): TranslateResponse(source)

Translates texts from the source language (from) to the target language (to).