-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 to set the default language? #723
Comments
My current practice: var defaultLanguage = app.ApplicationServices.GetService<ISettingDefinitionManager>().Get(LocalizationSettingNames.DefaultLanguage);
app.ApplicationServices.GetService<DefaultValueSettingValueProvider>().SetAsync(defaultLanguage, "zh-Hans", null); |
@maliming 谢谢 |
For the 0.14.0 version you can use a code similar to the following to modify. |
Note: do not forget to clear browser cookie after setting the default language. |
Get master branch(0.15.0) samples/Acme. BookStore and set the default language to zh-Hans. I didn't find the right way. |
No description provided.
The text was updated successfully, but these errors were encountered: