globalizejs/globalize

Relative Time: Accept numberFormatter as optional argument

Open

#531 opened on Oct 10, 2015

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (4,759 stars) (645 forks)batch import
help wantedquick changerelative time module

Description

It should be possible to:

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

Contributor guide