Open
Description
How can I set what is treated as a decimal separator? I can easily add support for units in more languages, but half of the world uses comma as a decimal separator and I can't seem to find a way to switch it.
Right now:
parse('1.500 seconds')
- resulting in one and a half second
parse('1,500 seconds')
- resulting in one and a half thousand seconds
I need:
parse('1,500 seconds')
- resulting in one and a half second
I understand that it's impossible to parse it both ways, but at least what we could have is a way to override the decimal separator based on our language we use in our apps. Maybe similar to how we add language specific units?
parse['decimalSeparator'] = ',';
Metadata
Assignees
Labels
No labels