如果使用Environment来配置本地化会更好。
xtzPioneer opened this issue · comments
目前的自定义描述很是麻烦。
What do you mean by using environment for localizations?
Can you maybe link to the relevant documentation please? I will take a look then.
如:
DatePicker( "Time", selection: $date, displayedComponents: [.date, .hourAndMinute] ) .environment(\.locale, .init(identifier: "zh-Hans"))
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.