Translate Options
data class TranslateOptions(var splitSentences: SplitSentences? = null, var preserveFormatting: PreserveFormatting? = null, var formality: Formality? = null, var tagHandling: TagHandling? = null, var nonSplittingTags: Iterable<String>? = null, var outlineDetection: OutlineDetection? = null, var splittingTags: Iterable<String>? = null, var ignoreTags: Iterable<String>? = null)(source)
For more information about each parameter, check the parameter's type documentation.
Parameters
preserve Formatting
Defaults to PreserveFormatting.No.
formality
Defaults to Formality.Default.
tag Handling
Defaults to no handling at all.
non Splitting Tags
Defaults to an empty list.
splitting Tags
Defaults to an empty list.
ignore Tags
Defaults to an empty list.
outline Detection
Defaults to OutlineDetection.Enabled.
split Sentences
Defaults to SplitSentences.OnPunctuation when tagHandling is set to TagHandling.Html, SplitSentences.OnPunctuationAndNewlines otherwise.
Constructors
Link copied to clipboard
constructor(splitSentences: SplitSentences? = null, preserveFormatting: PreserveFormatting? = null, formality: Formality? = null, tagHandling: TagHandling? = null, nonSplittingTags: Iterable<String>? = null, outlineDetection: OutlineDetection? = null, splittingTags: Iterable<String>? = null, ignoreTags: Iterable<String>? = null)