User:Iritscen/vector-2022.js: Difference between revisions

m
do I need to hook the page-load event?
mNo edit summary
Tag: Reverted
m (do I need to hook the page-load event?)
Tag: Reverted
Line 38: Line 38:
}
}


function localizeDates()
mw.hook('wikipage.content').add(function($localizeDates)
{
{
   const lang = getLang();
   const lang = getLang();
Line 53: Line 53:
     changeDateSeparator('day', '');
     changeDateSeparator('day', '');
   }
   }
}
});
$(localizeDates);


mw.hook('wikiEditor.toolbarReady').add(function($textarea)
mw.hook('wikiEditor.toolbarReady').add(function($textarea)