You need to install the Microsoft.AspNet.Localization NuGet package and add the following to your Startup.cs :
public void Configure(IApplicationBuilder app) { app.UseRequestLocalization(); app.UseMvc(); }
By default, it registers AcceptLanguageHeaderRequestCultureProvider as a culture provider, which should be equivalent to the deprecated enableClientBasedCulture parameter.
Update:
According to your comment, since you are using the RC1 version, you should provide a default culture for this method. For instance:
app.UseRequestLocalization(new RequestCulture("en"));
source share