papandreou / inter

A JavaScript locale library based on information extracted from the Unicode CLDR database
BSD 3-Clause "New" or "Revised" License
21 stars 5 forks source link

Expose currency special attributes from supplementalData #20

Open mwoc opened 8 years ago

mwoc commented 8 years ago

We could expose digits, rounding, cashDigits, cashRounding from supplementalData.currencyData.fractions, for instance as part of inter.getCurrency

If a currency is not in the list, I suppose we should fall back to using 2 as value for those four properties.