mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-31 05:02:27 +00:00
Merge pull request #385
* Update default language to be en instead of en-US * Update DefaultRequestCulture to be en
This commit is contained in:
parent
a599732894
commit
77edfed0be
2 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@ public class WebsiteStartup
|
|||
{
|
||||
List<CultureInfo> languages = LocalizationManager.GetAvailableLanguages().Select(l => new CultureInfo(LocalizationManager.MapLanguage(l))).ToList();
|
||||
|
||||
config.DefaultRequestCulture = new RequestCulture(new CultureInfo("en-US"));
|
||||
config.DefaultRequestCulture = new RequestCulture(new CultureInfo("en"));
|
||||
|
||||
config.SupportedCultures = languages;
|
||||
config.SupportedUICultures = languages;
|
||||
|
@ -81,4 +81,4 @@ public class WebsiteStartup
|
|||
app.UseEndpoints(endpoints => endpoints.MapControllers());
|
||||
app.UseEndpoints(endpoints => endpoints.MapRazorPages());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue