TranslateOptionalParams interface
Optional parameters.
- Extends
Properties
| allow |
Specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. Possible values are: true (default) or false. |
| category | A string specifying the category (domain) of the translation. This parameter is used to get translations from a customized system built with Custom Translator. Add the Category ID from your Custom Translator project details to this parameter to use your deployed customized system. Default value is: general. |
| client |
An opaque, globally-unique, client-generated string identifier for the request. |
| deployment |
Deployment name of the custom translation model for the translation request. |
| source |
Specifies source language of the input document. If this parameter isn't specified, automatic language detection is applied to determine the source language. For example if the source document is written in English, then use sourceLanguage=en |
| translate |
Optional boolean parameter to translate text within an image in the document |
Inherited Properties
| abort |
The signal which can be used to abort requests. |
| on |
A function to be called each time a response is received from the server while performing the requested operation. May be called multiple times. |
| request |
Options used when creating and sending HTTP requests for this operation. |
| tracing |
Options used when tracing is enabled. |
Property Details
allowFallback
Specifies that the service is allowed to fall back to a general system when a custom system doesn't exist. Possible values are: true (default) or false.
allowFallback?: boolean
Property Value
boolean
category
A string specifying the category (domain) of the translation. This parameter is used to get translations from a customized system built with Custom Translator. Add the Category ID from your Custom Translator project details to this parameter to use your deployed customized system. Default value is: general.
category?: string
Property Value
string
clientRequestId
An opaque, globally-unique, client-generated string identifier for the request.
clientRequestId?: string
Property Value
string
deploymentName
Deployment name of the custom translation model for the translation request.
deploymentName?: string
Property Value
string
sourceLanguage
Specifies source language of the input document. If this parameter isn't specified, automatic language detection is applied to determine the source language. For example if the source document is written in English, then use sourceLanguage=en
sourceLanguage?: string
Property Value
string
translateTextWithinImage
Optional boolean parameter to translate text within an image in the document
translateTextWithinImage?: boolean
Property Value
boolean
Inherited Property Details
abortSignal
The signal which can be used to abort requests.
abortSignal?: AbortSignalLike
Property Value
Inherited From OperationOptions.abortSignal
onResponse
A function to be called each time a response is received from the server while performing the requested operation. May be called multiple times.
onResponse?: RawResponseCallback
Property Value
Inherited From OperationOptions.onResponse
requestOptions
Options used when creating and sending HTTP requests for this operation.
requestOptions?: OperationRequestOptions
Property Value
Inherited From OperationOptions.requestOptions
tracingOptions
Options used when tracing is enabled.
tracingOptions?: OperationTracingOptions
Property Value
Inherited From OperationOptions.tracingOptions