To match PHP side.
Version: 1.22.0
Severity: normal
To match PHP side.
Version: 1.22.0
Severity: normal
The coding style that's emerged for this is mw.language.convertNumber.
// plain parameters mw.msg( key, thing ); //> "Hello $1" => "Hello Thing" // number parameter mw.msg( key, mw.language.convertNumber( edits ) ); //> "$1 edits" => "1,024 edits"
This separates the concerns of message formatting and value formatting, avoids extra dependencies, and I think is much easier to understand by not having to know the special method for a certain thing in addition to learning the "normal" way to do it for other scenarios.
If there was a common problem to avoid or some deeper integration that plain calls can't provide, I would agree there is added value, but in its current form, I think this is all we need?