Gets the accept-languages of the browser. This is different from the locale used by the browser. To get the locale, use i18n.getUILanguage
.
This is an asynchronous function that returns a Promise
.
See the Internationalization page for a guide on using this function.