papandreou / inter

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

renderPercentage expects numberSystemId instead of numDecimals #9

Closed ragulka closed 8 years ago

ragulka commented 10 years ago

See: https://github.com/papandreou/inter#interrenderpercentagenumber-numdecimals

Both inter.renderPercentage and inter.getPercentageRenderer should take a numDecimals argument, but instead they expect a numberSystemId.

I think they should definitely accept an argument that enables the user to control the number of decimals. Preferably even minDecimals and maxDecimals.

mwoc commented 8 years ago

This got fixed with v1.9.0