Intl.NumberFormat maximumFractionDigits not applying with currencyDisplay "name"
- Dominant language
- JavaScript
- Stars
- 11.3k
- Forks
- 865
- Avg merge
- 1h 30m
- Merged PRs (30d)
- 3
Description
## Bug Description
- [ ] The issue is reproducible with the latest version of React Native.
Hermes git revision (if applicable):
React Native version: 81.5 (expo)
OS: iOS
Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64):
## Steps To Reproduce
Run the code:
```
const number = new Intl.NumberFormat('en-US', {
style: "currency",
currency: 'USD',
currencyDisplay: "name",
maximumFractionDigits: 0,
});
console.log(formatted.format(1)); -> 1.00 US dollars
```
## The Expected Behavior
```1 US dollar```
Contributor guide
Research direction
Start by running the provided Intl.NumberFormat reproduction with React Native 81.5 on iOS and compare it with the expected output. Trace the Hermes implementation and existing tests for currencyDisplay "name" and maximumFractionDigits; done means the example formats 1 as "1 US dollar" while preserving correct pluralization and currency formatting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100