3 // Connect OOjs UI to MediaWiki's localisation system
4 OO.ui.getUserLanguages = mw.language.getFallbackLanguageChain;
6 // Connect OOjs UI's deprecation warnings to MediaWiki's logging system
7 OO.ui.warnDeprecation = function ( message ) {
8 mw.track( 'mw.deprecate', 'oojs-ui' );
9 mw.log.warn( message );
11 OO.ui.isMobile = function () {
12 if ( isMobile === undefined ) {
13 isMobile = mw.config.get( 'skin' ) === 'minerva';