How can i format currency related data in a manner that is culture aware in JavaScript?
So I know this is an old question, but incase anyone else shows up looking for similar answers, in modern JavaScript you can use
new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(number)
For more info here is the reference doc.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With