openexchangerates / accounting.js

A lightweight JavaScript library for number, money and currency formatting - fully localisable, zero dependencies.
http://openexchangerates.github.io/accounting.js
MIT License
4.96k stars 530 forks source link

Not possible to format value based on currency? #85

Open matthew-dean opened 10 years ago

matthew-dean commented 10 years ago

Can't see an issue tracking this, although it's somewhat similar (but not the same) as locale formatting.

Given currencies such as USD, CAD, EUR, and a value, it would be nice to format based on those currencies. Right now, it looks like I need to supply the currency symbol, even though those currencies only have one symbol.

patoroco commented 8 years ago

This issue is old, but maybe somebody (like me) continue finding, so I would like to suggest to use currency-symbol-map for this purpose, which is a lightweight library.