Closed rheckart closed 4 years ago
Did you include @formatjs/intl-pluralrules
polyfill? https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements
We had not in that sandbox version- thanks. We now have added the related Polyfills, and are experiencing the same behavior. Here's an updated deploy with the Intl.PluralRules/locale polyfills:
I got some other unrelated errors when loading your link( e.g require is undefined
)
Which package? I'm assuming
intl-messageformat-parser
,intl-messageformat
orintl-pluralrules
.Describe the bug
Using a pluralization, such as the below example, should produce the correct output by removing the braced content and replacing it with the calculated result.
Showing {COUNT, plural, =0 {0 notes} one {1 note} other {# notes} }
To Reproduce Steps to reproduce the behavior:
react-intl 2.4
sandbox in IE and observe that the formatting works (https://csb-lr3d2.netlify.com/)Expected behavior In the reproduction example above the output should be
no items, 1 item, 8 items
Desktop (please complete the following information):
Additional context In
react-intl
version 2.4, the formatting correctly occurs.