diff --git a/src/utils.ts b/src/formaters.ts similarity index 53% rename from src/utils.ts rename to src/formaters.ts index 93fe8b2..3778dfb 100644 --- a/src/utils.ts +++ b/src/formaters.ts @@ -3,3 +3,8 @@ export const iskFormater = new Intl.NumberFormat("is-IS", { currency: "ISK", minimumFractionDigits: 2, }); + +export const percentFormater = new Intl.NumberFormat("en-US", { + style: "percent", + minimumFractionDigits: 0 +}); \ No newline at end of file diff --git a/src/reprocess/Reprocess.vue b/src/reprocess/Reprocess.vue index af47af3..45aba06 100644 --- a/src/reprocess/Reprocess.vue +++ b/src/reprocess/Reprocess.vue @@ -1,8 +1,8 @@ + +@/formaters \ No newline at end of file