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

Added missing 'Saturday' string to locale-en #2490

Merged
merged 2 commits into from
Apr 16, 2018
Merged

Added missing 'Saturday' string to locale-en #2490

merged 2 commits into from
Apr 16, 2018

Conversation

vdh
Copy link
Contributor

@vdh vdh commented Mar 22, 2018

For some reason days is missing everyone's favourite one 😉

@etpinard
Copy link
Contributor

Thanks! Did that lead to any noticeable bugs?

@vdh
Copy link
Contributor Author

vdh commented Mar 23, 2018

@etpinard Well from what I've seen trying to use i18n, it doesn't look like the locale settings have been used anywhere yet?

@alexcjohnson
Copy link
Collaborator

Ha, good catch, wonder how we missed that? This will only show up with %A in a custom format, and we don't test every possible day and month in each format. We have some related tests in lib_date_test - would you mind adding one that covers all the weekdays?

@vdh
Copy link
Contributor Author

vdh commented Apr 16, 2018

@alexcjohnson I tried writing a test, but I wasn't able to figure out how to connect the locale-en file to the test.

@alexcjohnson
Copy link
Collaborator

Ah you're right, sorry about that - we've just used d3.time.format.utc in lib_date_test, you don't get locales until you've done a supplyDefaults step. We've got some related tests in localize_test, we can probably model it off this one - but it's a little more involved than I had realized, I can take it if you want.

@vdh
Copy link
Contributor Author

vdh commented Apr 16, 2018

Yeah thanks, I'm a bit lost. Sorry about the late reply by the way.

@alexcjohnson
Copy link
Collaborator

Added tests that cover the missing Saturday and most of the rest of the fields that should be in the locale. @etpinard OK?

@etpinard etpinard added bug something broken status: reviewable labels Apr 16, 2018
@etpinard
Copy link
Contributor

Great 💃

@alexcjohnson alexcjohnson merged commit 14504e5 into plotly:master Apr 16, 2018
@vdh vdh deleted the patch-2 branch April 18, 2018 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants