TranslateTextOptions class

Options that can be specified when translating text.

Constructors

TranslateTextOptions({String? splitSentences, bool? preserveFormatting, String? formality, String? glossaryId, String? tagHandling, bool? outlineDetection, String? splittingTags, String? nonSplittingTags, 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 String?
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 String?
List of XML tags containing content that should not be translated.
getter/setter pair
nonSplittingTags 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
splitSentences String?
Specifies how input translation text should be split into sentences.
getter/setter pair
splittingTags 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