xnimorz / svelte-input-mask

Input masking component for Svelte with simple API and rich customization
https://codesandbox.io/s/svelte-input-mask-demo-xurgr
102 stars 10 forks source link

Add numberformat internationalization features #12

Open ronanft opened 3 years ago

ronanft commented 3 years ago

Is it possible to add support for decimal separators and thousand separators in numberformat? suggested parameters: decimals="." thousands=","

Like: "1.897,99" => European "1,545.00" => US and UK

xnimorz commented 3 years ago

Hi! It's not implemented yet, but the idea is great. I'm not sure I have enough time for that, but I'll glad to review and cut a new release with the feature