Commit 059d085
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: 47a7b322fbb498e431b7db9130da3a852c5de8731 parent 4fef3ad commit 059d085
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2468 | 2468 | | |
2469 | 2469 | | |
2470 | 2470 | | |
2471 | | - | |
2472 | | - | |
| 2471 | + | |
2473 | 2472 | | |
2474 | | - | |
2475 | 2473 | | |
2476 | 2474 | | |
2477 | 2475 | | |
2478 | 2476 | | |
2479 | 2477 | | |
2480 | 2478 | | |
2481 | 2479 | | |
2482 | | - | |
| 2480 | + | |
2483 | 2481 | | |
2484 | 2482 | | |
2485 | 2483 | | |
| |||
2507 | 2505 | | |
2508 | 2506 | | |
2509 | 2507 | | |
| 2508 | + | |
| 2509 | + | |
| 2510 | + | |
2510 | 2511 | | |
2511 | 2512 | | |
2512 | 2513 | | |
| |||
0 commit comments