mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-16 20:18:00 +00:00
20 lines
358 B
JavaScript
20 lines
358 B
JavaScript
|
/**
|
||
|
* Mocks out various mediawiki.js functionality to avoid the mw dependency.
|
||
|
*/
|
||
|
const messages = require( '../../../i18n/en.json');
|
||
|
module.exports = {
|
||
|
msg: function ( key ) {
|
||
|
return messages[ key ];
|
||
|
},
|
||
|
Title: function( string ) {
|
||
|
return {
|
||
|
getUrl: function(){ return string }
|
||
|
};
|
||
|
},
|
||
|
html: {
|
||
|
escape: function( str ){
|
||
|
return str
|
||
|
}
|
||
|
}
|
||
|
};
|