Comments (5)
Thanks for the pull request - we will get this merged in a few days - just clearing a backlog of issues!
from currencyformatter.js.
ok, had a chat with a few other guys and we agree with you. It should indeed be a function of the currency code, so we'll review and use your changes :)
from currencyformatter.js.
Ok, we have another swerve ball. Spoke to the original creator of the lib, and it turns out that the locale should indeed drive the currency format, not the currency itself. Why? Because one currency can be formatted differently across different regions (classic example is the Euro). ISO 4217 lists the currencies and the minor units, but not the formats. The standard for currency formats is the CLDR (http://cldr.unicode.org/), which is what the library is based on, however the CLDR can take a bit of time to update.
So we will close this pull request for now, but you did make some important format updates to a number of currencies, which we will include in the next update. Thanks for all the hard work :)
from currencyformatter.js.
Just reviewed your pull request, and I'm thinking it might be easier to just maintain a custom set of locales that we map against these currencies, rather than adding all the logic with the mantissa length.
What do you think?
from currencyformatter.js.
Yeah maybe. I think the more important thing is that the mantissa should be a function of countryCode and not locale, but maybe that isn't something you want this library to do.
from currencyformatter.js.
Related Issues (20)
- ReactJS support HOT 2
- Should Allow to specify text colour dynamic if negative value HOT 3
- Can't disable symbol HOT 2
- symbol wrong direction
- Best Practice for Customizing formatAll ? HOT 5
- Venezuelan Bolivar re-denomination HOT 6
- Rounding Off Issue HOT 1
- Parsing force toFixed 2 decimals HOT 1
- Optionally remove symbol from formatting HOT 3
- Setting hidden symbol when format currency HOT 1
- Prevent number ticking from displaying on the dom HOT 2
- Invalid character in IE10 - line 1275 character 49 HOT 1
- How use it on NPM?
- Is it possible to extend this to cover crypto? HOT 5
- any info on using this with webpack?
- Behaviour for '#' and '0'
- NaN parsing CVE currency value
- Currencies and countries in JSON
- Wrong format MXN
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from currencyformatter.js.