w/skins/MinervaNeue/resources/skins.minerva.scripts/init.js
/**
	 * Hijack the Special:Languages link and replace it with a trigger to a LanguageOverlay
	 * that displays the same data
	 * @ignore
	 */
Hijack the Special:Languages link and replace it with a trigger to a LanguageOverlay
that displays the same data
@ignore
Hijack the Special : Languages link and replace it with a trigger to a LanguageOverlay that displays the same data @ignore
function initButton() {
		var $primaryBtn = $( '.language-selector' );
		if ( $primaryBtn.length ) {
			$primaryBtn.on( 'click', function ( ev ) {
				ev.preventDefault();
				if ( $primaryBtn.attr( 'href' ) || $primaryBtn.find( 'a' ).length ) {
					router.navigate( '/languages' );
				} else {
					toast.show( mw.msg( 'mobile-frontend-languages-not-available' ) );
				}
			} );
		}
	}
function initButton ( ) { var $primaryBtn = $ ( '.language-selector' ) ; if ( $primaryBtn . length ) { $primaryBtn . on ( 'click' , function ( ev ) { ev . preventDefault ( ) ; if ( $primaryBtn . attr ( 'href' ) || $primaryBtn . find ( 'a' ) . length ) { router . navigate ( '/languages' ) ; } else { toast . show ( mw . msg ( 'mobile-frontend-languages-not-available' ) ) ; } } ) ; } }
Hijack the Special:Languages link and replace it with a trigger to a LanguageOverlay
 that displays the same data
 @ignore
Hijack the Special : Languages link and replace it with a trigger to a LanguageOverlay that displays the same data @ignore
// This catches language selectors in page actions and in secondary actions (e.g. Main Page) // We only bind the click event to the first language switcher in page