ggb / numeral-elm

Numeral.js port to Elm
MIT License
22 stars 9 forks source link

Custom unit suffix #9

Closed therustmonk closed 7 years ago

therustmonk commented 7 years ago

It's good to have custom unit prefix/suffix like: 12345 -> "0,0[ pcs.]" -> "12,345 pcs."

ggb commented 7 years ago

Hi, sounds like a reasonable and good idea. I'll have a look into it. Thanks for your suggestion!

therustmonk commented 7 years ago

Thank you! I am at your service and ready to write some code if you need it.

ggb commented 7 years ago

I've implemented this enhancement and published version 1.2.2 to elm package. Please note that it's not possible to use numbers as unit suffix at the moment.

therustmonk commented 7 years ago

Thank you a lot! It works fine! :tada: