Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow localization of number format #1

Open
IvanSanchez opened this issue Jul 7, 2016 · 0 comments
Open

Allow localization of number format #1

IvanSanchez opened this issue Jul 7, 2016 · 0 comments

Comments

@IvanSanchez
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant