blob: f05f285401fe9acd96ec8bf530b9b4e6a297fbe1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import {type I18n} from '@lingui/core'
export const formatCount = (i18n: I18n, num: number) => {
return i18n.number(num, {
notation: 'compact',
maximumFractionDigits: 1,
// @ts-expect-error - roundingMode not in the types
roundingMode: 'trunc',
})
}
|