WorkerGlobalScope: languagechange event

The languagechange event is fired at the global scope object when the user's preferred language changes.

Bubbles No
Cancelable No
Interface Event
Event handler onlanguagechange


You can use the languagechange event in an addEventListener method:

worker.addEventListener('languagechange', function() {
  console.log('languagechange event detected!'); 

Or use the onlanguagechange event handler property:

worker.onlanguagechange = function(event) {
  console.log('languagechange event detected!');


Specification Status
HTML Living Standard
The definition of 'languagechange' in that specification.
Living Standard

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
languagechange eventChrome Full support 4Edge Full support 12Firefox Full support 74IE Full support YesOpera Full support 11.5Safari Full support 4WebView Android ? Chrome Android Full support 40Firefox Android No support NoOpera Android Full support YesSafari iOS Full support 5.1Samsung Internet Android Full support 4.0


Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also