Post

Replies

Boosts

Views

Activity

Wrong locale display text of DatePicker with GraphicalDatePickerStyle style
the reproduce code is very simple, just drag a DatePicker and set locale to another one(not default or en, zh-CN here), you will see the display texts like all week day name and Time are not translated to Chinese,still english, here is the image of it: (I don't know why image link is not allowed so here is the image url without "https://" ). emptytheory.files.wordpress.com/2020/11/chinese-locale-date-time-picker.png swift  DatePicker(selection: .constant(Date()), label: { Text("Time") })         .datePickerStyle(GraphicalDatePickerStyle()).environment(\.locale, Locale.init(identifier: "zh-CN")) and there is another issue actually , it show 12 hour format even your device setting is 24 hour.
1
0
2.7k
Mar ’21