mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-24 23:35:45 +00:00
chore(FE-91): set formatNumber locale to id-ID as default
This commit is contained in:
+1
-2
@@ -19,7 +19,7 @@ export const cn = (...inputs: ClassValue[]) => {
|
|||||||
|
|
||||||
export const formatNumber = (
|
export const formatNumber = (
|
||||||
value: number | bigint | Intl.StringNumericLiteral,
|
value: number | bigint | Intl.StringNumericLiteral,
|
||||||
locale = 'en-US',
|
locale = 'id-ID',
|
||||||
minimumFractionDigits = 0,
|
minimumFractionDigits = 0,
|
||||||
maximumFractionDigits = 2
|
maximumFractionDigits = 2
|
||||||
) => {
|
) => {
|
||||||
@@ -29,7 +29,6 @@ export const formatNumber = (
|
|||||||
}).format(value);
|
}).format(value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export const formatCurrency = (
|
export const formatCurrency = (
|
||||||
value: number | bigint | Intl.StringNumericLiteral,
|
value: number | bigint | Intl.StringNumericLiteral,
|
||||||
currency = 'USD',
|
currency = 'USD',
|
||||||
|
|||||||
Reference in New Issue
Block a user