modus-web-components icon indicating copy to clipboard operation
modus-web-components copied to clipboard

Localization for Numbers

Open enowak1031 opened this issue 1 year ago • 3 comments

  1. Numerical inputs add a selectable pattern in a global context with option for "." and ","
    allow depending on localisation: 123456789,12345 allow depending on localisation: 123456789.12345
  2. Include option of spaces as a divider. This way users are not confused by multiple "." or "," ( e.g. 123.456.789,12 or 123,456,789.12) allow depending on localisation: 123 456 789,12345 allow depending on localisation: 123 456 789.12345
  3. Add the ability to limit the number of characters before and after a "." or ",". This would ensure that people only enter valid numbers, and would reduce errors. e.g. 9 characters before and 2 after "." or "," allow depending on localisation: 123456789,12 allow depending on localisation: 123456789.12

enowak1031 avatar Mar 12 '24 20:03 enowak1031

I think this can be achieved using autoNumeric.

austinoneil avatar Mar 27 '24 05:03 austinoneil

@cjwinsor I'm going to move this one to Refinement, so we can assess.

enowak1031 avatar May 10 '24 17:05 enowak1031

@enowak1031 @coliff Some pattern to be followed for the currency part ?(Initial Release)

ElishaSamPeterPrabhu avatar Jun 17 '24 14:06 ElishaSamPeterPrabhu