inveniosoftware / react-searchkit

React component library for interacting with a REST API.
https://inveniosoftware.github.io/react-searchkit/
MIT License
78 stars 40 forks source link

Count: number format #169

Closed FlorianCassayre closed 3 years ago

FlorianCassayre commented 3 years ago

The counts components should format their numbers to improve readability. Ideally it should provide support for internationalization; otherwise we should stick to one locale for consistency (say en_US). For instance in the following case:

image

...it should instead be displayed as:

image

There is another "count" component in the aggregation list, and which should also benefit from this feature:

image

FlorianCassayre commented 3 years ago

Yes indeed, implementation should be quite straightforward. Feel free to submit a pull request :slightly_smiling_face: