ng-zorro-antd
ng-zorro-antd copied to clipboard
[nz-input-number]: custom decimal separator
What problem does this feature solve?
In the React version of Ant Design, the input-number
component supports a decimalSeparator
property.
Some languages have different language separators than the regular .
This would allow us to use our own decimal separator, so we can adjust to the proper locale standards.
An alternative approach would be automatically following the configured locale, though I'm not sure how easy that'd be to implement.
What does the proposed API look like?
2 possible solutions:
- add
decimalSeparator
input property tonz-number-input
(more consistent with ant-design react?) - follow configured locale automatically to use the correct decimal separator.