2 // Connect OOjs UI to MediaWiki's localisation system
3 OO.ui.getUserLanguages = mw.language.getFallbackLanguageChain;
5 // Connect OOjs UI's deprecation warnings to MediaWiki's logging system
6 OO.ui.warnDeprecation = function ( message ) {
7 mw.track( 'mw.deprecate', 'oojs-ui' );
8 mw.log.warn( message );