Skip to content
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

allow minus sign to be configured in locale #76

Merged
merged 3 commits into from
Sep 5, 2019
Merged

allow minus sign to be configured in locale #76

merged 3 commits into from
Sep 5, 2019

Conversation

benib
Copy link
Contributor

@benib benib commented Sep 4, 2019

This adds a new property to the locale: minusSign.
Using this property the character used as the prefix for negative numbers can be specified in the locale. The default is defined as the current character minus-hyphen U+002D.

This implements the idea in the issue #62 that it should be possible to override the character used in the locale.

All the tests pass, although I haven't added a new case to check if the new minusSign locale prop gets used everywhere as it should. Please advise if you want me to do something else/more here.

@mbostock
Copy link
Member

mbostock commented Sep 4, 2019

Can we call it “minus” rather than “minusSign”?

Copy link
Member

@mbostock mbostock left a comment

Choose a reason for hiding this comment

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

I’ll add some tests after merging. Thank you!

@benib
Copy link
Contributor Author

benib commented Sep 5, 2019

Thank you for building this awesome piece of software 💐
And for adding the semicolon i forgot 🙃

@mbostock mbostock merged commit dd09548 into d3:master Sep 5, 2019
@benib benib deleted the feat-minus-sign-in-locale branch September 5, 2019 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants