User:Kevingr/global.js

/* Language is set to German for de-wikis even if default setting is English useful if activities are mainly in non-de-wikis */ if ( mw.util.getParamValue( 'uselang' ) === null && mw.config.get( 'wgContentLanguage' ) === 'de' ) { location = (new mw.Uri( location.toString )).extend( { uselang : 'de' } ); }

/* Language is set to English for non-de-wikis even if default setting is German useful if activities are mainly in de-wikis if ( mw.util.getParamValue( 'uselang' ) === null && mw.config.get( 'wgContentLanguage' ) !== 'de' ) { location = (new mw.Uri( location.toString )).extend( { uselang : 'en' } ); }