From dd3a0079db959d099951939ba5ac00bb2f27453e Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Thu, 30 Oct 2025 10:48:18 +0700 Subject: [PATCH] chore(FE-91): set formatNumber locale to id-ID as default --- src/lib/helper.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/helper.ts b/src/lib/helper.ts index e3bfda65..002be5a3 100644 --- a/src/lib/helper.ts +++ b/src/lib/helper.ts @@ -19,7 +19,7 @@ export const cn = (...inputs: ClassValue[]) => { export const formatNumber = ( value: number | bigint | Intl.StringNumericLiteral, - locale = 'en-US', + locale = 'id-ID', minimumFractionDigits = 0, maximumFractionDigits = 2 ) => { @@ -29,7 +29,6 @@ export const formatNumber = ( }).format(value); }; - export const formatCurrency = ( value: number | bigint | Intl.StringNumericLiteral, currency = 'USD',