-
Notifications
You must be signed in to change notification settings - Fork 4k
Ensure narrow currency symbol is used for formatting #11895
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
Ensure narrow currency symbol is used for formatting #11895
Conversation
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) ✅ license/snyk check is complete. No issues have been found. (View Details) |
✅ PR preview is ready!
|
| return formatIntlNumberWithLocales(value, { | ||
| style: "currency", | ||
| currency: "EUR", | ||
| currencyDisplay: "narrowSymbol", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: Is it expected that this change did not yield an e2e snapshot change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The narrow symbol is already used in our test cases. If this is not set, I think it depends on the locale if it shows a narrow or full symbol for a specific currency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a unit test. If narrowSymbol wouldn't be set for "pt-BR", the yen would be shown with the wide symbol: JP¥ 10
…rency-symbol-number-formatting
Describe your changes
When applying currency formatting via number or progress column, we always want to show the narrow symbol for
dollar,euro, andyen.Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.