globalizejs/globalize

Relative Time: Accept numberFormatter as optional argument

Open

#531 aperta il 10 ott 2015

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (645 fork)batch import
help wantedquick changerelative time module

Metriche repository

Star
 (4759 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

It should be possible to:

var relativeTimeFormatter = Globalize( "en" ).relativeTimeFormatter(  "month", {
  numberFormatter: myFormatter
});

Guida contributor