This commit is contained in:
2023-07-26 11:22:25 +02:00
parent 18dc329932
commit 760df64876
3 changed files with 55 additions and 24 deletions

10
src/formaters.ts Normal file
View File

@@ -0,0 +1,10 @@
export const iskFormater = new Intl.NumberFormat("is-IS", {
style: "currency",
currency: "ISK",
minimumFractionDigits: 2,
});
export const percentFormater = new Intl.NumberFormat("en-US", {
style: "percent",
minimumFractionDigits: 0
});