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

Automatic Week-Start and Time-Format based on Locale #322

Open
lumi-a opened this issue Jan 29, 2024 · 0 comments
Open

Automatic Week-Start and Time-Format based on Locale #322

lumi-a opened this issue Jan 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lumi-a
Copy link

lumi-a commented Jan 29, 2024

Proposed feature or solution

The week-start and time-format should have default values based on the user's locale. Currently, as far as I can tell, their default values are always "Sunday" and "am/pm", regardless of the user's locale.

Alternatives

The week-start and time-format can be removed entirely if instead the frontend-time-display is based entirely on the user's locale. Many websites display time just using .toLocaleString. This would also make i18n easier.

Additional information

The week-start can be acquired with .getWeekInfo, the relevant time-format with .getHourCycles.

@lumi-a lumi-a added the enhancement New feature or request label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant