wip4
This commit is contained in:
@@ -14,7 +14,7 @@ export function formatCurrency(params: {
|
|||||||
locale: string;
|
locale: string;
|
||||||
value: string | number;
|
value: string | number;
|
||||||
}) {
|
}) {
|
||||||
const [lang, region] = params.locale.split('-');
|
const [lang, region] = (params.locale ?? 'et-ET').split('-');
|
||||||
|
|
||||||
return new Intl.NumberFormat(region ?? lang, {
|
return new Intl.NumberFormat(region ?? lang, {
|
||||||
style: 'currency',
|
style: 'currency',
|
||||||
|
|||||||
Reference in New Issue
Block a user