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

How do I use ZH-Hans by default when a project starts #5898

Closed
CaiJinHao opened this issue Oct 22, 2020 · 2 comments
Closed

How do I use ZH-Hans by default when a project starts #5898

CaiJinHao opened this issue Oct 22, 2020 · 2 comments

Comments

@CaiJinHao
Copy link

How to use ZH-Hans by default when the project starts? I start en every time, and it can only work by changing Cookies to ZH-Hans.I want my project to start with ZH-Hans by default.Settings like the following do not work, the default is en
Configure(options =>
{
options.Resources
.Add("zh-Hans")
.AddBaseTypes(typeof(AbpValidationResource))
.AddVirtualJson("/Localization/YourProjectName");
});

@realLiangshiwei
Copy link
Member

See #5219

@CaiJinHao
Copy link
Author

thank you @realLiangshiwei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants