globalizejs / globalizejs/globalize

Support all ECMA-402 formatter options?

Open
#328 3 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
4.8k
Forks
585
PR merge metrics
No merged PRs in 30d

Description

### Number format

| [ECMA-402 options](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat) | [Globalize options](https://github.com/jquery/globalize/blob/master/doc/api/number/number-formatter.md) |
| --- | --- |
| localeMatcher | :no_entry_sign: Not needed, locales are not negotiated |
| style | style |
| currency | currency |
| currencyDisplay | currencyDisplay |
| useGrouping | useGrouping |
| minimumIntegerDigits | minimumIntegerDigits |
| minimumFractionDigits | minimumFractionDigits |
| maximumFractionDigits | maximumFractionDigits |
| minimumSignificantDigits | minimumSignificantDigits |
| maximumSignificantDigits | maximumSignificantDigits |
| :no_entry_sign: | round |
### Date format

| [ECMA-402 options](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat) | [Globalize options](https://github.com/jquery/globalize/blob/master/doc/api/date/date-formatter.md) |
| --- | --- |
| localeMatcher | :no_entry_sign: Not needed, locales are not negotiated |
| timeZone | :no_entry_sign: |
| hour12 | :no_entry_sign: |
| formatMatcher | :no_entry_sign: |
| era | era via skeleton |
| year | year via skeleton |
| :no_entry_sign: | quarter via skeleton |
| month | month via skeleton |
| :no_entry_sign: | week of year via skeleton |
| :no_entry_sign: | week of month via skeleton |
| weekday | weekday via skeleton |
| day | day via skeleton |
| hour | hour via skeleton |
| minute | minute via skeleton |
| second | second via skeleton |
| timeZoneName | timeZoneName via skeleton |
| :heavy_exclamation_mark: fields combination? [1] | :heavy_exclamation_mark: all combinations possible after implementing #271 #272 |
| :no_entry_sign: | {date: "full|long|medium|short"}} |
| :no_entry_sign: | {time: "full|long|medium|short"}} |
| :no_entry_sign: | {datetime: "full|long|medium|short"}} |

1: According to [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat):

> Implementations are required to support at least the following subsets
> - weekday, year, month, day, hour, minute, second
> - weekday, year, month, day
> - year, month, day
> - year, month
> - month, day
> - hour, minute, second
> - hour, minute

How about other subsets?

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.