globalizejs / globalizejs/globalize

MessageFormat formatters

Open
#563 23 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4.8k
Forks
585
PR merge metrics
No merged PRs in 30d

Description

The messageformat library supports custom formatter functions. You could register globalize's formatters, so they could be used in messages, e.g. `"Balance: {0, currency}"`, or `"Posted at {0, datetime, long}"`.

It would also be great if there was a way to pass custom formatter functions to MessageFormat.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.