This commit is contained in:
Eric Bailey
2025-09-03 21:38:25 -05:00
parent 7927943b01
commit 3bd34dc2eb
+5
View File
@@ -1,5 +1,10 @@
import {type I18n} from '@lingui/core'
/**
* This matches `formatCount` from `view/com/util/numeric/format.ts`, but has
* additional truncation logic for large numbers. `roundingMode` should always
* match the original impl, regardless of if we add more formatting here.
*/
export function formatPostStatCount(
i18n: I18n,
count: number,