moroshko / accessible-colors

Automatically find the closest accessible color combination
http://accessible-colors.com
MIT License
470 stars 28 forks source link

localized number formatting #68

Open zeke opened 7 years ago

zeke commented 7 years ago

I noticed a module called add-commas in the codebase that may not be needed.

Browsers already have a method called Number.prototype.toLocaleString() which formats numbers according to the user's locale, i.e. "5,000" for en-US and "5.000" for European locales.

It's also got pretty good browser support: http://caniuse.com/#feat=internationalization

Would you be interested in a PR for this?

moroshko commented 7 years ago

Sure, PR is welcome!