User:Mvolz/setLanguageToEnglish.js

/* Set user lang */ mw.loader.using("mediawiki.user", function {   if ( mw.user.options.get('language') !== 'en' ) {        ( new mw.Api ).postWithToken( 'csrf', { action: "options", change: "language=en" } ).done( function { mw.loader.using([], function{               mw.notify( "User language set to 'en'. Please refresh the page." );           } );        } );    } } );