Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: use navigator.locale to evaluate time format#17025

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mtojek merged 1 commit intomainfrom15452-12-24-2
Mar 20, 2025
Merged

Conversation

mtojek
Copy link
Member

Fixes:#15452

It's second attempt.

This time we usenavigator.locale to check the browser/OS locale.

@mtojekmtojek self-assigned thisMar 20, 2025
@mtojekmtojek requested a review frommafredriMarch 20, 2025 14:14
@mtojekmtojek marked this pull request as ready for reviewMarch 20, 2025 14:14
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM 👍🏻

@@ -79,6 +79,7 @@ export const ScheduleForm: FC<ScheduleFormProps> = ({
},
});
const getFieldHelpers = getFormHelpers<ScheduleFormValues>(form, submitError);
const browserLocale = navigator.language || "en-US";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Disappointed we have to uselanguage as an approximation 😔. I prefer to use English US for text and UI language but Finland is used for numbers, time and currency. Yet this is not available to the browser (AFAICT).

@mtojekmtojek merged commit287e319 intomainMar 20, 2025
32 of 34 checks passed
@mtojekmtojek deleted the 15452-12-24-2 branchMarch 20, 2025 14:53
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMar 20, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@mafredrimafredrimafredri approved these changes

Assignees

@mtojekmtojek

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add support for changing from 12 to 24-hour time
2 participants
@mtojek@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp