Skip to content

Big numbers localized #2474

Closed
Closed

Description

1009992 is hard to read (since we have more than one million products).

Big numbers should be split with locale separators. Here is an example for french locale (where groups of 3 digits are separated by a space):
image

The current HTML code is:

<div style="font-size:1.2rem;background-color:#eeeeee;padding:0.3rem 1rem;height:2.75rem;margin:0">1 009 392 products</div>

It should be improved: put CSS in a file, add ids, etc. Example:

<div id="xxxProducts"><span id="nbOfProducts" value="1009392">1 009 392</span> products</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    frontend✨ FeatureFeatures or enhancements to Open Food Facts server

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions