i18n.getSystemUILanguage()
Returns the current UI locale of the operating system. This is different fromi18n.getUILanguage, which returns the UI locale of the web browser.
In this article
Syntax
js
let systemUILanguage = await browser.i18n.getSystemUILanguage()Parameters
None.
Return value
APromise fulfilled with ani18n.LanguageCode.