numbers2words
numbers2words copied to clipboard
Negative value passed to translator.toWords() returns undefined
For example, -231 returns undefined hundred and undefined
Well, technically speaking, the Readme does say:
Now available locales
- en_US (0...999999999)
- cs_CZ (0...999999999)
So that would make your issue a feature request.
How about adding a simple detection to add minus then Math.abs the value?