-( function ( mw, $ ) {
+( function () {
'use strict';
var grammarTests, bcp47Tests;
]
};
+ // eslint-disable-next-line no-restricted-properties
$.each( grammarTests, function ( langCode, test ) {
if ( langCode === mw.config.get( 'wgUserLanguage' ) ) {
grammarTest( langCode, test );
[ 'kk-Cyrl', 'kk-Cyrl' ],
[ 'kk-Latn', 'kk-Latn' ],
[ 'map-bms', 'jv-x-bms' ],
- [ 'mo', 'ro-MD' ],
+ [ 'mo', 'ro-Cyrl-MD' ],
[ 'nrm', 'nrf' ],
[ 'nl-informal', 'nl-x-informal' ],
[ 'roa-tara', 'nap-x-tara' ],
assert.strictEqual( mw.language.bcp47( input.toUpperCase() ), expected );
} );
} );
-}( mediaWiki, jQuery ) );
+}() );