TranslateTextOptions class

Options that can be specified when translating text.

Constructors

TranslateTextOptions.new({String? splitSentences, bool? showBilledCharacters, bool? preserveFormatting, Formality? formality, ModelType? modelType, String? glossaryId, String? tagHandling, bool? outlineDetection, List<String>? splittingTags, List<String>? nonSplittingTags, List<String>? ignoreTags, String? context})

Properties

context String?
Provides additional context to improve translation accuracy. This text is not translated itself, but helps the engine understand the surrounding meaning.
getter/setter pair
formality Formality?
Controls whether translations should lean toward formal or informal language.
getter/setter pair
glossaryId String?
Specifies the ID of a glossary to use with translation.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ignoreTags List<String>?
List of XML tags containing content that should not be translated.
getter/setter pair
modelType ModelType?
Specifies which DeepL model should be used for translation.
getter/setter pair
nonSplittingTags List<String>?
List of XML tags that should not be used to split text into sentences.
getter/setter pair
outlineDetection bool?
Set to false to disable automatic tag detection, default is true.
getter/setter pair
preserveFormatting bool?
Set to true to prevent the translation engine from correcting some formatting aspects, and instead leave the formatting unchanged, default is false. */
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showBilledCharacters bool?
When true, the response will include the billedCharacters parameter, giving the number of characters from the request that will be counted by DeepL for billing purposes.
getter/setter pair
splitSentences String?
Specifies how input translation text should be split into sentences.
getter/setter pair
splittingTags List<String>?
List of XML tags that should be used to split text into sentences.
getter/setter pair
tagHandling String?
Type of tags to parse before translation, options are 'html' and 'xml'.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited