-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TimeRange - Allow specifying arrayOfWeekdays #1764
Comments
@anton-johansson, if you think the solution is easy to implement, please do not hesitate to submit a PR ;) |
I'll try to get the project set up locally and see what I can do. I'd guess "first day of the week" is the cleanest approach? |
Won't be as easy as I initially thought! I looked too fast, |
@anton-johansson, in case #613 solves the problem of the first-day-of-the-week problem (I haven't checked out and run the code in the PR), translation for the calendar component should be doable using I.e.: const date = new Date()
const month = date.toLocaleString('it-IT', { month: 'long' });
console.debug(month) // Prints "settembre" |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you! |
Is your feature request related to a problem? Please describe.
I want to Monday to be the first row instead of Sunday.
Describe the solution you'd like
Should be easy to allow passing in
arrayOfWeekdays
as a property toTimeRange
that is passed down tocomputeWeekdays
:nivo/packages/calendar/src/TimeRange.tsx
Line 114 in d49a790
Or maybe more clean: A property to indicate which is the first day of the week.
Describe alternatives you've considered
None.
The text was updated successfully, but these errors were encountered: