Figure out why Relative Format example aren't formatting numbers
ericf opened this issue · 2 comments
ericf commented
I noticed that the relative format examples that display "1,320" minutes aren't formatting the number according to the locale.
Whereas when I try to use IntlRelativeFormat
directly it works fine; e.g., in French:
var rf = new IntlRelativeFormat('fr', {units: 'minute'})
rf.format(Date.now() - (1000*60*1320)); // => "il y a 1 320 minutes"
ericf commented
This is a manifestation of this bug: formatjs/intl-relativeformat#17
ericf commented
This has now been fixed.