shared/ui-language
Functions
Section titled “Functions”isLanguageCode()
Section titled “isLanguageCode()”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.
Parameters
Section titled “Parameters”string
A value of the setting.
Returns
Section titled “Returns”boolean
languageArguments()
Section titled “languageArguments()”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.
Parameters
Section titled “Parameters”language
Section titled “language”string
The value of the setting i18n.language: system or a language code.
Returns
Section titled “Returns”string[]
languageOfArguments()
Section titled “languageOfArguments()”languageOfArguments(
args):string|undefined
Defined in: app/src/shared/ui-language.ts:26
The language that the browser gave one of its own views.
Parameters
Section titled “Parameters”readonly string[]
The command line of the view, such as process.argv in its preload.
Returns
Section titled “Returns”string | undefined
A language code, or undefined when the view follows the system.