diff --git a/lib/util/format-compact.ts b/lib/util/format-compact.ts index e1c027551..eb0a08c46 100644 --- a/lib/util/format-compact.ts +++ b/lib/util/format-compact.ts @@ -2,10 +2,11 @@ export const formatNumberCompact = ( num: number | bigint, maximumSignificantDigits = 3, ) => { + const userLocale = navigator.language || "en-US"; // Ensure displaying absolute zeros are unsigned(-), because javascript sucks sometimes. if (num === 0 || num === 0n) num = 0; - return new Intl.NumberFormat("en-US", { + return new Intl.NumberFormat(userLocale, { maximumSignificantDigits: maximumSignificantDigits, notation: "compact", }).format(num);