function onGot(languages) {
console.log(languages);
// e.g. Array [ "en-US", "en" ]
}
let gettingAcceptLanguages = browser.i18n.getAcceptLanguages();
gettingAcceptLanguages.then(onGot);i18n.getAcceptLanguages() / notebook
i18n.getAcceptLanguages()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.