-
Notifications
You must be signed in to change notification settings - Fork 19
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
Note on locales / currencies #140
Comments
See also #125 when implementing this. We might as well make some real fixes instead of just adding notes about it. Right now we use Python's built-in So, the implementation of this should probably include:
For the javascript side, there are a number of possibilities:
I think going with the built-in Intl is the way to go. It's as simple as: var formatted = new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(123456.78); |
Ok, what's actually needed for implementation:
|
Issue #140 - configurable currency units and formatting
In documentation, add a note on locale/currency support. Should have a clear note near the top of the README, pointing to more detailed explanation in the built docs.
The text was updated successfully, but these errors were encountered: