feat(i18n): use compact number format instead K/M suffix (#678)

This commit is contained in:
Joaquín Sánchez 2023-01-01 20:31:14 +01:00 committed by GitHub
parent d0567c0d18
commit ca93f1a813
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 14 additions and 30 deletions

View file

@ -107,11 +107,13 @@ const numberFormats = Object.values(locales).reduce((acc, data) => {
maximumFractionDigits: 0,
},
kiloCounting: {
style: 'decimal',
notation: 'compact',
compactDisplay: 'short',
maximumFractionDigits: 1,
},
millionCounting: {
style: 'decimal',
notation: 'compact',
compactDisplay: 'short',
maximumFractionDigits: 2,
},
}