Mass changes

This commit is contained in:
Simon Pocrnjič
2025-10-04 23:36:18 +02:00
parent ab50336e97
commit fe91c7e4bc
46 changed files with 5738 additions and 1873 deletions
@@ -0,0 +1,14 @@
export function useEurFormat(locale = 'sl-SI', currency = 'EUR') {
const formatter = new Intl.NumberFormat(locale, {
style: 'currency',
currency,
minimumFractionDigits: 2,
});
function formatEur(val) {
if (val === null || val === undefined || val === '' || isNaN(val)) {
return '—';
}
return formatter.format(Number(val));
}
return { formatEur };
}