DefaultNumberFormat and DefaultDateFormat
Access to i18n's locale-aware getters for default number and date formats would be nice for use by $number and $date format functions.
Might want to look at implementing default configs per the locale.
Updated by Patrick Talbot over 7 years ago
- Status changed from New to Closed
$number and $date are now Locale aware and uses internally method similar to utils.numberFormat() and utils.dateFormat()
Default format for dates and numbers will be the default for the Locale (without even setting it)
$number.format() will now also accept a number of decimals, for example $number.format(2, $yourNumber), as well as formats, for example $number.format('#,###.00', $yourNumber) (which will use the pattern according to the current Locale as well), $number.currency() and $number.percent() will also automatically use the client's Locale.
This is available in v2.0.19