ng-zorro-antd icon indicating copy to clipboard operation
ng-zorro-antd copied to clipboard

[nz-input-number]: custom decimal separator

Open JoniVR opened this issue 3 years ago • 6 comments

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 to nz-number-input (more consistent with ant-design react?)
  • follow configured locale automatically to use the correct decimal separator.

JoniVR avatar Jun 11 '21 14:06 JoniVR