i18n.getSystemUILanguage()
Returns the current UI locale of the operating system. This is different from i18n.getUILanguage, which returns the UI locale of the web browser.
Syntax
js
let systemUILanguage = await browser.i18n.getSystemUILanguage()
Parameters
None.
Return value
A Promise fulfilled with an i18n.LanguageCode.
Browser compatibility
| desktop | mobile | ||||||
|---|---|---|---|---|---|---|---|
getSystemUILanguage
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support