|
@ -251,8 +251,11 @@ export function getNumberFormatDecimal(aLocale?: string) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export function getNumberFormatGroup(aLocale = getLocale()) { |
|
|
export function getNumberFormatGroup(aLocale = getLocale()) { |
|
|
const formatOptions = {'useGrouping': true}; |
|
|
const formatOptions = { useGrouping: true }; |
|
|
const formatObject = new Intl.NumberFormat(aLocale, formatOptions).formatToParts(9999.99); |
|
|
const formatObject = new Intl.NumberFormat( |
|
|
|
|
|
aLocale, |
|
|
|
|
|
formatOptions |
|
|
|
|
|
).formatToParts(9999.99); |
|
|
|
|
|
|
|
|
return formatObject.find((object) => { |
|
|
return formatObject.find((object) => { |
|
|
return object.type === 'group'; |
|
|
return object.type === 'group'; |
|
|