Closed oharan closed 6 years ago
I'm having a small problem using your filter with French Canadian. French Canadian uses thousand separator of space, but your filter is setting it to the default because it thinks an empty space is a number.
https://github.com/mazipan/vue-currency-filter/blob/fc9664e9991396b319b207348414ba4f6e89b7e1/VueCurrencyFilter.js#L56
This is the line. If you do !isNaN(parseInt(thousandsSeparator)) it works with a space.
You can create pull request then, feel free to correcting the code.
I'm having a small problem using your filter with French Canadian. French Canadian uses thousand separator of space, but your filter is setting it to the default because it thinks an empty space is a number.