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 (645 forks)batch import
help wantedquick changerelative time module

Repository metrics

Stars
 (4,759 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

It should be possible to:

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

Contributor guide