-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IntlProvider formats & defaultFormats seem broken in latest release (3.3.2). #1500
Comments
After further testing it seems this issue was in fact introduced in the 3.3.2 release, 3.3.1 works as expected. |
Do you have a codesandbox?
…On Mon, Oct 14, 2019, 2:34 AM Zachary J. Rollyson ***@***.***> wrote:
After further testing it seems this issue was in fact introduced in the
3.3.2 release, 3.3.1 works as expected.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1500>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABQM36OML7QP2VYD256OYLQONZ5XANCNFSM4JAHR5NQ>
.
|
No and I'm not generally aware of a handy way to sandbox Edit: corrected version |
I mean codesandbox.io link to repro this
…On Mon, Oct 14, 2019 at 6:51 AM Zachary J. Rollyson < ***@***.***> wrote:
No and I'm not generally aware of a handy way to sandbox react-intl. I
can tell you that after installing every version of the package since
3.0.0, 3.3.1 is the only version with an issue. If I have some more time
later I will try to figure out how to get this package into a sandbox.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1500>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABQM33HAGN24C5L5FTXHTLQOOYBZANCNFSM4JAHR5NQ>
.
|
Here you go… this is with v3.3.2, broken: https://codesandbox.io/s/focused-leakey-46yr4 |
Thanks I'll take a look next week when I'm back from vacation
…On Mon, Oct 14, 2019, 8:23 AM Zachary J. Rollyson ***@***.***> wrote:
Here you go…
this is with v3.3.2, broken: https://codesandbox.io/s/focused-leakey-46yr4
here is with v3.3.1, works:
https://codesandbox.io/s/blissful-zhukovsky-9oq4w
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1500>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABQM33EJ2SADZNIPNJOBF3QOPCZTANCNFSM4JAHR5NQ>
.
|
Expected behavior
Using
formats
&defaultFormats
should allow printing formatted messages with custom formats.Should allow message with
"The day is {monday, date, short-weekday}."
to render as"The day is Mon."
Current behavior
Instead
formats
anddefaultFormats
do nothing and date is rendered with default format (e.g."The day is 10/14/2019."
I have verified that this all works if I downgrade version to 3.0.0, have not yet tested other versions.
Step to reproduce for BUG REPORT
Use
IntlProvider
wherever, define adefaultFormats
, try to use that in aFormattedMessage
within/using the provider. Doesn't matter if injected or through hook or just nested.Your Environment
npm ls react-intl
npm ls react
npm --version
node --version
The text was updated successfully, but these errors were encountered: