Skip to main content

Interface: TranslateTextParams

Defined in: src/client.ts:47

Extends​

  • TranslateParams

Properties​

alternatives?​

optional alternatives?: number

Defined in: src/client.ts:44

How many alternative translations to return besides the main one (default 0).

Inherited from​

TranslateParams.alternatives


format?​

optional format?: TranslateRequestFormat

Defined in: src/client.ts:42

html keeps the markup and translates only its text (default text).

Inherited from​

TranslateParams.format


q​

q: string

Defined in: src/client.ts:49

The text to translate.


source?​

optional source?: string

Defined in: src/client.ts:38

The source language code, or auto (the default) to detect it.

Inherited from​

TranslateParams.source


target​

target: string

Defined in: src/client.ts:40

The target language code.

Inherited from​

TranslateParams.target