-
Notifications
You must be signed in to change notification settings - Fork 125
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
Use Babel for all formatting #22
Comments
Thanks, that's a good suggestion, from what I see of Babel it's indeed the standard - would you like to make-it-so via a pull request? :) |
Babel does look like a good option, except that now the project looks a bit dead: https://github.com/mitsuhiko/babel
|
Babel now has a new maintainer it seems, who is looking after it well. Babel relies on CLDR for all its info, and we should definitely be using it for all our currency formatting, rather than having to review and manually merge PRs for every single locale. This would be a significant piece of work, but would massively reduce maintenance needs in the future, and solve a whole bunch of issues, and even the need to think about what is the right behaviour, because Babel/CLDR already has a standard answer. I think the right approach to all requests for new locales is to instead wait for a patch for this issue. To be concrete: Almost the whole of For those who just need a specific locale to be added, and don't want to wait for this to land, here is a reminder that you can install from your own github branch: https://pip.pypa.io/en/stable/reference/pip_install/#vcs-support |
Actually, I had a much better idea than my last comment:
|
+1 I was just looking for exactly this i.e. round to a "human" value supported by the currency. I noticed a similar idea but differing implementation approach suggested on #47 I wonder if there are actually three behaviours that should be supported:
|
@tardate - the last one on your list seems too specific to a particular application. It can always be implemented externally in your own code. |
For the sake of clarity on where this issue is up to:
|
Latest work is in #136 |
Hi! Thanks for great package. There is a lot of overlapping functionality here with Babel. Why not adding Babel as a requirement and make number formatting and currency stuff use babel? Babel is the defacto i18n library in Python so it makes sense to use it rather than inventing the wheel again.
The text was updated successfully, but these errors were encountered: