diff --git a/resources/js/ext.uls.init.js b/resources/js/ext.uls.init.js index 9fbd63d9..0e10fbcb 100644 --- a/resources/js/ext.uls.init.js +++ b/resources/js/ext.uls.init.js @@ -20,6 +20,16 @@ ( function ( $, mw ) { 'use strict'; + /* + * The 'als' is used in a non-standard way in MediaWiki - + * it may be used to represent the Allemanic language, + * the standard code of which is 'gsw', while 'als' + * is ISO 639 3 refers to Tosk Albanian, which is + * not currently used in any way in MediaWiki. + * This local fix adds a redirect for it. + */ + $.uls.data.addLanguage( 'als', { target: 'gsw' } ); + mw.uls = mw.uls || {}; mw.uls.previousLanguagesStorageKey = 'uls-previous-languages'; mw.uls.languageSettingsModules = [ 'ext.uls.inputsettings', 'ext.uls.displaysettings' ]; diff --git a/resources/js/ext.uls.mediawiki.js b/resources/js/ext.uls.mediawiki.js index 8be67082..73e055df 100644 --- a/resources/js/ext.uls.mediawiki.js +++ b/resources/js/ext.uls.mediawiki.js @@ -30,14 +30,4 @@ $.fn.uls.Constructor.prototype.render = function () { this.$languageFilter.addClass( 'noime' ); }; - - /* - * The 'als' is used in a non-standard way in MediaWiki - - * it may be used to represent the Allemanic language, - * the standard code of which is 'gsw', while 'als' - * is ISO 639 3 refers to Tosk Albanian, which is - * not currently used in any way in MediaWiki. - * This local fix adds a redirect for it. - */ - $.uls.data.addLanguage( 'als', { target: 'gsw' } ); }( jQuery, mediaWiki ) );