You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: specify currency in locale identifier when formatting currency plural (#919)
Summary:
Intl.NumberFormat does not respect the currency input when currencyDisplay is "name". Without currencyDisplay, currency is correctly taken into account.
Resolves#914
Pull Request resolved: #919
Test Plan:
Build Hermes and installed on RN application, tested against multiple currency/locale pairs.
```
new Intl.NumberFormat('de-DE', {
style: 'currency',
currency,
currencyDisplay: 'name',
}).format(2)
```
Reviewed By: mhorowitz
Differential Revision: D43437187
Pulled By: neildhar
fbshipit-source-id: 47a7b322fbb498e431b7db9130da3a852c5de873
0 commit comments