Added Frontend
This commit is contained in:
3
frontend/composables/useCurrency.js
Normal file
3
frontend/composables/useCurrency.js
Normal file
@@ -0,0 +1,3 @@
|
||||
export const useCurrency = (value,currencyString = " €") => {
|
||||
return `${Number(value).toFixed(2).replace(".",",")} ${currencyString}`.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
|
||||
}
|
||||
Reference in New Issue
Block a user