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.
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
let systemUILanguage = await browser.i18n.getSystemUILanguage()
Parameters
None.
Return value
A Promise fulfilled with an i18n.LanguageCode.