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? #2775
Comments
The default language has lower priority than |
Dear @majidbigdeli
if you set failed ,you can set it manually by the above code. |
@majidbigdeli you can try in
and then in your
this worked for me! |
@yerayvm Hi, I tried your way, it worked for me, thanks! var supportedCultures = new[]
{
new CultureInfo("cs"),
new CultureInfo("en"),
};
app.UseAbpRequestLocalization(options =>
{
options.DefaultRequestCulture = new RequestCulture("cs");
options.SupportedCultures = supportedCultures;
options.SupportedUICultures = supportedCultures;
options.RequestCultureProviders = new List<IRequestCultureProvider>
{
new QueryStringRequestCultureProvider(),
new CookieRequestCultureProvider()
};
}); and thank you again! |
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. |
I tried @crybigsea suggestion Once I did it - I got the correct default language, but when I switch to the other language I still getting the default language texts. Switching languages without that code works fine. |
i use
"Settings": {
"Abp.Localization.DefaultLanguage": "cs"
}
in appsettings.json
but not working
The text was updated successfully, but these errors were encountered: