BrowserLanguageDetectorConfiguration

Configuration class for i18next-browser-langaugedetector initialization.

This class encapsulates all the configuration options available for initializing i18next-browser-langaugedetector in a Kotlin/JS environment.

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

cache user language on

Link copied to clipboard

Optional conversion function used to modify the detected language code. 'Iso15897'

Link copied to clipboard

Optional domain for cookie.

Link copied to clipboard

Optional expiry for cookie.

Link copied to clipboard

languages to not persist (cookie, localStorage)

Link copied to clipboard

Optional htmlTag with lang attribute.

Link copied to clipboard

Cookie lookup key.

Link copied to clipboard

Index of path element that should be treated as lookup key.

Link copied to clipboard

Index of subdomain that should be treated as lookup key (left-to-right).

Link copied to clipboard

Local storage lookup key.

Link copied to clipboard

Querystring lookup key.

Link copied to clipboard

Session storage lookup key.

Link copied to clipboard

Order and source of language detection.

Functions

Link copied to clipboard
fun cookieOptions(optionsObject: dynamic)

Configures the cookieOptions using a dynamic object.

Link copied to clipboard
open override fun getAsDynamic(): dynamic

Converts the detection configuration into a dynamic object suitable for i18next initialization.