Skip to content
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

[REQUIREMENT] Extract pattern data about compact number formats #555

Closed
wangyi-e opened this issue May 14, 2020 · 0 comments
Closed

[REQUIREMENT] Extract pattern data about compact number formats #555

wangyi-e opened this issue May 14, 2020 · 0 comments
Assignees

Comments

@wangyi-e
Copy link

wangyi-e commented May 14, 2020

Is your feature request related to a problem? Please describe.
To support the compact representation of a number: like 987654321 => 988M

The reference link: https://www.unicode.org/reports/tr35/tr35-numbers.html#Compact_Number_Formats

eg: locale: 'en-GB'
formatOptions:{ notation: "compact" , compactDisplay: "short" })
input:(987654321));
output:( 988M

Describe the solution you'd like
The backend service can provide the corresponding pattern data regarding the 'decimalFormats-[numberSystem]'

For the first version, the number system is the value of 'defaultNumberingSystem' in raw pattern data:
https://github.com/unicode-cldr/cldr-numbers-full/blob/master/main/en/numbers.json

Describe alternatives you've considered
A clear and concise description of any alternative solution or feature you've considered.

Additional context
CLDR data: https://github.com/unicode-cldr/cldr-numbers-full/blob/master/main/en/numbers.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants