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

如果使用Environment来配置本地化会更好。 #133

Open
xtzPioneer opened this issue May 18, 2023 · 4 comments
Open

如果使用Environment来配置本地化会更好。 #133

xtzPioneer opened this issue May 18, 2023 · 4 comments
Labels
feature request Request or suggestion for new feature stale

Comments

@xtzPioneer
Copy link

目前的自定义描述很是麻烦。

@xtzPioneer xtzPioneer added the feature request Request or suggestion for new feature label May 18, 2023
@jevonmao
Copy link
Owner

What do you mean by using environment for localizations?

@jevonmao
Copy link
Owner

Can you maybe link to the relevant documentation please? I will take a look then.

@xtzPioneer
Copy link
Author

如:
DatePicker( "Time", selection: $date, displayedComponents: [.date, .hourAndMinute] ) .environment(\.locale, .init(identifier: "zh-Hans"))

@github-actions
Copy link

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.

@github-actions github-actions bot added the stale label Jun 23, 2023
@jevonmao jevonmao reopened this Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request or suggestion for new feature stale
Projects
None yet
Development

No branches or pull requests

2 participants