i18next / i18next-icu

i18nFormat plugin to use ICU format with i18next
MIT License
81 stars 17 forks source link

intl-messageformat is egregiously out of date #30

Closed cellog closed 3 years ago

cellog commented 3 years ago

🐛 Bug Report

The current version of intl-messageformat is 9.4.6, and this package depends on 2.2.0. This breaks all of the date skeleton formats described in https://formatjs.io/docs/intl-messageformat#datetime-skeleton

Would you accept a PR bumping the intl-messageformat version in package.json?

To Reproduce

A codesandbox example or similar or at least steps to reproduce the behavior:

t("month-label", "{ date, date, ::MMMMyyyy }", { date: new Date() });

Expected behavior

It should format with "February 2021" but instead formats as "02/08/2021"

Your Environment

jamuhl commented 3 years ago

Sure PR's are very welcome - not using this myself and lacking time that would help a lot.

jamuhl commented 3 years ago

merged and published in i18next-icu@2.0.0