Skip to content

Currency: support symbol-alt-narrow #631

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

Closed
wants to merge 1 commit into from
Closed

Currency: support symbol-alt-narrow #631

wants to merge 1 commit into from

Conversation

gethinwebster
Copy link
Contributor

Adds support for alternative symbols via 'symbolForm' option

Fixes #479

Adds support for alternative symbols via 'symbolForm' option

Fixes #479
@jquerybot
Copy link

Thank you for your pull request. It looks like this may be your first contribution to a jQuery Foundation project, if so we need you to sign our Contributor License Agreement (CLA).

📝 Please visit http://contribute.jquery.org/CLA/ to sign.

After you signed, the PR is checked again automatically after a minute. If there's still an issue, please reply here to let us know.


If you've already signed our CLA, it's possible your git author information doesn't match your CLA signature (both your name and email have to match), for more information, check the status of your CLA check.

@rxaviers
Copy link
Member

Thanks for your contribution. I will review your PR this weekend, but I've left a couple of inline notes about indentation.

]);
currency
]),
symbol = currencySymbols[options.symbolForm || "symbol"] || currencySymbols.symbol;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use form as option?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding style: use spaces after [ and before ] like [ options..."symbol" ].

@rxaviers
Copy link
Member

@@ -19,7 +19,8 @@ define([

var accounting = { style: "accounting" },
code = { style: "code" },
name = { style: "name" },
name = { style: "name" },
narrow = { symbolForm: "symbol-alt-narrow" },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's simplify the API option. Instead of the above, let's use { form: "narrow" } and have the formatter to include the symbol-alt- part when necessary.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-thinking about it, options.form could cause confusion. With options.symbolForm we make it very explicit that this form is only available when options.symbol is "symbol".

@rxaviers
Copy link
Member

rxaviers commented Aug 17, 2016

There is a functional test, which is good. A bonus point would be adding a unit test too.

@rxaviers
Copy link
Member

I've left a couple of comments now, just let me know if you have any questions and thanks so far.

@rxaviers rxaviers added this to the 1.3.0 milestone Mar 17, 2017
@rxaviers
Copy link
Member

I've made the review updates myself (at https://github.com/rxaviers/globalize/tree/pr-631-continued). Although, due to Foundation changes and its updated CLA, I have been recommended not merge this PR (link) (cc @kborchers) until this is re-signed.

@rxaviers rxaviers removed this from the 1.3.0 milestone May 29, 2017
@rxaviers
Copy link
Member

Thanks @gethinwebster

@rxaviers
Copy link
Member

Superseded by #738

@rxaviers rxaviers closed this May 30, 2017
rxaviers pushed a commit to rxaviers/globalize that referenced this pull request Jul 17, 2018
Adds support for alternative symbols via 'symbolForm' option

Ref globalizejs#479
Ref globalizejs#631
Ref globalizejs#738
rxaviers added a commit to rxaviers/globalize that referenced this pull request Jul 17, 2018
rxaviers pushed a commit that referenced this pull request Jul 17, 2018
Adds support for alternative symbols via 'symbolForm' option

Ref #479
Ref #631
Ref #738
rxaviers added a commit that referenced this pull request Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants