-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Date and number localization #2207
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
Changes from 1 commit
eacc99b
fe812eb
64968dd
a527828
43b73e0
27037af
2a8d38f
d0e0158
592fc9e
614d5be
331b2da
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,7 @@ exports.register([ | |
// locales en and en-US are required for default behavior | ||
exports.register([ | ||
require('./locale-en'), | ||
require('./locale-en-US') | ||
require('./locale-en-us') | ||
]); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎩 Since we're constructing our own @etpinard seem reasonable? Are you OK with putting these two in the root Minor downside is the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This is very reasonable 👌
Yep, we should at least open up an issue on https://github.com/plotly/documentation/issues and / or add a Locale section to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated will open an issue at https://github.com/plotly/documentation once this is merged. |
||
|
||
// plot icons | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -447,7 +447,7 @@ module.exports = function setConvert(ax, fullLayout) { | |
ax._min = []; | ||
ax._max = []; | ||
|
||
// Fropagate localization into the axis so that | ||
// Propagate localization into the axis so that | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
// methods in Axes can use it w/o having to pass fullLayout | ||
// Default (non-d3) number formatting uses separators directly | ||
// dates and d3-formatted numbers use the d3 locale | ||
|
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.
how did this not fail for me locally but only on CI?
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 a check for case correctness of all the requires 43b73e0