Skip to content

shared/ui-language

isLanguageCode(value): boolean

Defined in: app/src/shared/ui-language.ts:8

Whether a value of the setting i18n.language names a language, rather than system.

string

A value of the setting.

boolean


languageArguments(language): string[]

Defined in: app/src/shared/ui-language.ts:17

The arguments that give the browser’s own views a language: none when the language follows the system, which the views then find out themselves.

string

The value of the setting i18n.language: system or a language code.

string[]


languageOfArguments(args): string | undefined

Defined in: app/src/shared/ui-language.ts:26

The language that the browser gave one of its own views.

readonly string[]

The command line of the view, such as process.argv in its preload.

string | undefined

A language code, or undefined when the view follows the system.