formatjs / formatjs-old

The monorepo home to all of the FormatJS related libraries.
https://formatjs.io/
156 stars 53 forks source link

DateTime skeletons support for intl-messageformat #94

Closed pyrocat101 closed 4 years ago

pyrocat101 commented 5 years ago

Which package? intl-messageformat

Is your feature request related to a problem? Please describe. DateTime skeleton: http://www.icu-project.org/apiref/icu4j/com/ibm/icu/text/SimpleDateFormat.html

Describe the solution you'd like Implement DateTime skeleton parsing.

Describe alternatives you've considered N/A

Additional context N/A

pyrocat101 commented 5 years ago

See https://github.com/formatjs/formatjs/pull/131

pyrocat101 commented 5 years ago

See also: https://github.com/tc39/ecma402/issues/189

pyrocat101 commented 5 years ago

Putting this on-hold since we cannot trivially implement skeleton with Intl.DateTimeFormat#formatToParts. Existing implementation such as globalize has a fairly sophisticated implementation and uses CLDR data.

To keep intl-messageformat package size lean and avoid breaking existing APIs, it makes more sense if skeleton is supported via some plugin.