getUILanguage method
Gets the browser UI language of the browser. This is different from
i18n.getAcceptLanguages
which returns the preferred user languages.
returns
The browser UI language code such as en-US or fr-FR.
Implementation
String getUILanguage() {
return $js.chrome.i18n.getUILanguage();
}