-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currency directive separators (European and Indian). #3639
Comments
While I'm on the subject, there are some countries (for example Russia) where the currency symbol follows the money instead of preceedes it. |
Third issue - a negative number used as the precision gives some strange results:
Gives:
Two of them are missing the separators, but one of them is wrong (10 -> 0). |
@Y-Less Vue 2.0 is shipping w/o builtin filters. The best path forward is to create your own filter that uses a well-supported currency library to create the display value |
IMO it's better to create a filter and ship that as a full package to be used with Vue 1 or 2 |
As @Y-Less mentioned, filters are removed in Vue 2.0, and we won't add any new functionality to current filters, so this feature request won't be fullfilled. There are numerous libraries out there for formatting numbers to currency strings - Vue should not duplicate that behaviour again. It's pretty easy to create your own filter wrapper around one of those libraries, though with a custom filter |
Vue.js version
1.0.23
Reproduction Link
Steps to reproduce
What is Expected?
Indian numbering (as well as several other Asian countries) don't use the same number separations as western countries. They place the first comma after three digits, and the rest every two digits, so large numbers like currencies become:
₹1,00,000
Instead of:
₹100,000
Further, many (but not all) European countries have a "decimal comma" and use a dot to separate thousands groups, so the equivalent large amount would become:
€100.000,00
I'm aware (from reading previous discussions on the
| currency
directive) that inferring settings from the currency marker is not desired, but there should be a way to specify the following outputs:Note the two different euro variants.
What is actually happening?
Currently, all the outputs are:
The text was updated successfully, but these errors were encountered: