react-animated-numbers icon indicating copy to clipboard operation
react-animated-numbers copied to clipboard

Using a locale with a blank space thousand separator shows a 0 instead of a blank space

Open Branch opened this issue 1 year ago • 0 comments

Example locale: sv-SE

This locale should use a blank space as the thousand separator, however it instead shows a 0.

This is caused by rows 26-28 in index.jsx:

const animateToNumbersArr = Array.from(animateTonumberString, Number).map( (x, idx) => (isNaN(x) ? animateTonumberString[idx] : x) );

Branch avatar Nov 07 '24 09:11 Branch