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
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
getSystemUILanguage
Chrome – No support
Chrome
footnote No support
Edge – No support
Edge
footnote No support
Firefox – No support
Firefox
footnote No support
Opera – No support
Opera
footnote No support
Safari – Full support
Safari 18.4 (Release date: 2025-03-31)
footnote Full support
Firefox for Android – No support
Firefox for Android
footnote No support
Safari on iOS – Full support
Safari on iOS 18.4 (Release date: 2025-03-31)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support