Skip to content

Allow localization of number format #1

@IvanSanchez

Description

@IvanSanchez

The number format right now is US only (thousands separated by comma), but this is not how numbers are formatted in other countries or cultures.

The code should allow for localization of the number, via https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString , with a sensible fallback for older browsers. Locale should ideally fetched from navigator.languages or from a lang attribute in a the map's container or page body, or allow the developer to override that. See https://www.w3.org/TR/html4/struct/dirlang.html#h-8.1 , https://www.w3.org/TR/ltli/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions