We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 88885a3 + 0958fe7 commit f8f718cCopy full SHA for f8f718c
web-app/packages/lib/src/common/number_utils.ts
@@ -39,9 +39,10 @@ export function formatFileSize(
39
export function formatToCurrency(
40
value: number,
41
currency: string,
42
- digits = 2
+ digits = 2,
43
+ locale = 'en-UK'
44
): string {
- return value.toLocaleString('en-UK', {
45
+ return value.toLocaleString(locale, {
46
style: 'currency',
47
currency,
48
currencySign: 'accounting',
0 commit comments