react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Number.toLocaleString() polyfill

Open pewallin opened this issue 11 years ago • 3 comments

Seems like .toLocaleString is not supported (ie, formatting thousand separators correctly depending on user locale, for instance showing 1000 as 1,000 in the US and as 1 000 in Sweden.

pewallin avatar Apr 23 '15 21:04 pewallin

@pewallin - neat, can you put together a PR including this polyfill?

brentvatne avatar Apr 23 '15 22:04 brentvatne

https://www.npmjs.com/package/globalize is a more robust solution.

pewallin avatar Apr 24 '15 07:04 pewallin

Looks like you're tracking this in #1042 now :smile:

brentvatne avatar Apr 28 '15 06:04 brentvatne