DetectorSource

Enumeration of possible sources for language detection using i18next browser language detector.

The browser language detector checks various sources to determine the user's preferred language. This enum represents the different sources that can be used for language detection.

Entries

Link copied to clipboard
@SerialName(value = "cookie")
COOKIE

Language detected from a cookie stored in the browser.

Link copied to clipboard
@SerialName(value = "htmlTag")
HTML_TAG

Language detected from the lang attribute of the <html> tag.

Link copied to clipboard
@SerialName(value = "localStorage")
LOCAL_STORAGE

Language detected from the browser's local storage.

Link copied to clipboard
@SerialName(value = "navigator")
NAVIGATOR

Language detected from the browser's navigator object.

Link copied to clipboard
@SerialName(value = "path")
PATH

Language detected from the URL path.

Link copied to clipboard
@SerialName(value = "querystring")
QUERYSTRING

Language detected from the URL query string parameter.

Link copied to clipboard
@SerialName(value = "sessionStorage")
SESSION_STORAGE

Language detected from the browser's session storage.

Link copied to clipboard
@SerialName(value = "subdomain")
SUBDOMAIN

Language detected from the subdomain of the URL.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.