AutoDetectSourceLanguageConfig class

Language auto detect configuration.

Properties

mode
properties

Methods

fromLanguages(string[])
fromOpenRange()
fromSourceLanguageConfigs(SourceLanguageConfig[])

Property Details

mode

void mode

Property Value

void

properties

PropertyCollection properties

Property Value

Properties of the config.

Method Details

fromLanguages(string[])

static function fromLanguages(languages: string[]): AutoDetectSourceLanguageConfig

Parameters

languages

string[]

Comma-separated string of languages (eg. "en-US,fr-FR") to populate properties of config.

Returns

Instance of AutoDetectSourceLanguageConfig

fromOpenRange()

static function fromOpenRange(): AutoDetectSourceLanguageConfig

Returns

Instance of AutoDetectSourceLanguageConfig

fromSourceLanguageConfigs(SourceLanguageConfig[])

static function fromSourceLanguageConfigs(configs: SourceLanguageConfig[]): AutoDetectSourceLanguageConfig

Parameters

configs

SourceLanguageConfig[]

SourceLanguageConfigs to populate properties of config.

Returns

Instance of AutoDetectSourceLanguageConfig