translateTexts

Translate multiple texts. USER-ONLY

Parameters

toLanguage: string

The code of the language to translate into.

The texts to translate.

tone?: string

The tone of the translation.

Result

Syntax

// Required parameters only.
await client.translateTexts(toLanguage, texts);

// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.translateTexts(toLanguage, texts, { tone });