TranslateInputItem interface
Element containing the text for translation.
Properties
| language | Specifies the language of the input text. Find which languages are available to translate by looking up supported languages using the translation scope. If the language parameter isn't specified, automatic language detection is applied to determine the source language. You must use the language parameter rather than autodetection when using the dynamic dictionary feature. Note: the dynamic dictionary feature is case-sensitive. |
| script | Specifies the script of the input text. |
| targets | Translation target parameters. |
| text | Text to translate. |
| text |
Defines whether the text being translated is plain text or HTML text. Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html. Possible values: "Plain", "Html" |
Property Details
language
Specifies the language of the input text. Find which languages are available to translate by looking up supported languages using the translation scope. If the language parameter isn't specified, automatic language detection is applied to determine the source language.
You must use the language parameter rather than autodetection when using the dynamic dictionary feature. Note: the dynamic dictionary feature is case-sensitive.
language?: string
Property Value
string
script
Specifies the script of the input text.
script?: string
Property Value
string
targets
text
Text to translate.
text: string
Property Value
string
textType
Defines whether the text being translated is plain text or HTML text. Any HTML needs to be a well-formed, complete element. Possible values are: plain (default) or html.
Possible values: "Plain", "Html"
textType?: string
Property Value
string