3 // Connect OOUI to MediaWiki's localisation system
4 OO.ui.getUserLanguages = mw.language.getFallbackLanguageChain;
6 // Connect OOUI'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( 'wgMFMode' );
17 OO.ui.getTeleportTarget = function () {
18 return require( 'mediawiki.page.ready' ).teleportTarget;