macosui / macos_ui

Flutter widgets and themes implementing the current macOS design language.
https://macosui.github.io/macos_ui/#/
MIT License
1.81k stars 178 forks source link

TimePicker localisation #442

Open rklos opened 1 year ago

rklos commented 1 year ago

Use case

I want to create an app in my native language. In my language we use the 24-hour format (without the AM/PM suffix), It would be nice to change the time format in TimePicker.

Proposal

I have no idea how to do it in case of the graphical picker (the clock), but the textual picker can look like this: CleanShot 2023-07-04 at 19 29 28

API can be done like the date formatting in DatePicker (https://github.com/macosui/macos_ui/pull/415)

GroovinChip commented 1 year ago

I have no idea how to do it in case of the graphical picker (the clock), but the textual picker can look like this:

I don't think this would apply to the graphical picker, only the textual.