Skip to content

Locale-based calendar week format#10360

Open
dreamscached wants to merge 2 commits intoMonika-After-Story:contentfrom
dreamscached:feature/locale-based-calendar
Open

Locale-based calendar week format#10360
dreamscached wants to merge 2 commits intoMonika-After-Story:contentfrom
dreamscached:feature/locale-based-calendar

Conversation

@dreamscached
Copy link
Copy Markdown
Contributor

At the moment the calendar is hardcoded to use sunday-saturday week format, which is not used worldwide. I suggest to use calendar module which in turn uses user's locale to determine first day of week.

After some testing it seems that it's enough just to set DAY_NAMES appropriately and update a constant in _setupDayButtons for it to seemingly work absolutely the same with the different week format.

This PR only adds monday-sunday week format (e.g. used in all of the Europe, Russia, and many other countries); in case firstweekday returns neither 0 nor 6 the calendar remains sunday-saturday.

@dreamscached dreamscached force-pushed the feature/locale-based-calendar branch from c1966f2 to 9d0db6d Compare January 17, 2025 21:33
@dreamscached dreamscached force-pushed the feature/locale-based-calendar branch from 9d0db6d to efd7dfa Compare January 17, 2025 21:34
@dreamscached
Copy link
Copy Markdown
Contributor Author

dreamscached commented Apr 23, 2025

Or, alternatively, maybe Monika could ask player about that in some random dialogue? Instead of using calendar directly.

@Booplicate Booplicate added the priority: low this isn't that important, but we see its usefulness label Sep 3, 2025
@Booplicate Booplicate moved this to In Progress in Calendar Sep 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: low this isn't that important, but we see its usefulness

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants