-
Notifications
You must be signed in to change notification settings - Fork 603
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
Implement currency formatting #351
Conversation
Info about size... globalize/currency is 2.6K minified and gzipped (96% the size of globalize/number), i.e., considerable size. Most of the bytes come from [:^S:] implementation, which is used to generate the formatter. But, not used to execute it. This PR has minimal impact on other modules, adds |
This is ready for review. |
fdd4263
to
e597b03
Compare
6c1ad2e
to
9d98247
Compare
locales using the plural messages `Globalize( locale ).currencyFormatter( currency, | ||
{ style: "name" } )( 1 )`. | ||
|
||
| `USD` | `1.00 US dollar` | `1,00 US-Dollar` | `1.00美元` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like its missing the header line, like the previous one:
| 3-letter currency code | en (English) | de (German) | zh (Chinese) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed. Thanks, fixed.
"This looks like its missing the header line, like the previous one"
"This duplicates too much information from currency-formatter.md, should just reference that"
Remove extra space.
@@ -0,0 +1,13 @@ | |||
define(function() { | |||
|
|||
// Generated by: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A comment explaining what this regex does would help.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added
Updates made. |
Fix #238