Update jquery.i18n from upstream, use its default message store
In Iddef0805ab a custom message store was introduced for ULS, but there were updates in jquery.i18n that allows us to use default message store again. (see https://github.com/wikimedia/jquery.i18n/pull/40) Change-Id: I86cb7a44efa83e5811824cd1104c6be11b1e2925
This commit is contained in:
@@ -316,11 +316,9 @@
|
||||
* @param {String} language Language code
|
||||
*/
|
||||
preview: function ( language ) {
|
||||
var displaySettings = this,
|
||||
i18n = $.i18n();
|
||||
var displaySettings = this;
|
||||
|
||||
i18n.locale = language;
|
||||
i18n.messageStore.load( i18n.locale ).done( function () {
|
||||
mw.uls.loadLocalization( language ).done( function () {
|
||||
displaySettings.i18n();
|
||||
} );
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user