navigator.languages will expose the Accept Languages and languageevent (fired on the Window object) will notify of a change in this value. The goal is to allow web applications to handle i18n on the client side, thus allowing offline applications to react to user language changes.
Docs: https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage.languages