When you find and replace text using the WikiEditor dialogue the number of matches is not localized. For instance, in Persian you will see a message like 7 جایگزینی انجام شد instead of ۷ جایگزینی انجام شد
The reason is that this line of code passes the number of matches (i.e. match.length) without first localizing it:
.text( mw.msg( 'wikieditor-toolbar-tool-replace-success', match.length ) )