The navigator.languages property exposes the Accept Language header and the languageevent, which is fired on the Window object to notifiy scripts of changes to this value. Both features allow web applications to handle i18n in the client and react to user language changes. This change makes these features available to workers. Specifically, navigator.languages is available on workers and languageevent is fired on workers as well as the main thread.
Specification being incubated in a Community Group
Status in Chromium
Enabled by default
Consensus & Standardization
- No signals
Search tagsworkers, languages, navigator,
Last updated on 2021-12-13