public class Startup { public void ConfigureServices(IServiceCollection services) { services.Configure<RequestLocalizationOptions>(Options => { Options.DefaultRequestCulture = new <pre> Microsoft.AspNetCore.Localization.RequestCulture("en-GB"); Options.SupportedCultures = new List<CultureInfo> { new CultureInfo("en-GB") }; } //All other configuration options } public void Configure(IApplicationBuilder app, IHostingEnvironment env) { if(env.IsDevelopment()) { //Set Dev Env } else { //Set Live Env } app.UseRequestLocalization(); app.UseMVc(routes => { routes.MapRoute( name: "default", template: "{controller}/{action=Index}/{id?}"); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)