title: How do I set the locale for an ASP.NET 5 application?
body: <p>I’m trying to do a blanket override of the host locale for an ASP.NET 5 web application. Most solutions refer to the <code>&lt;globalization/&gt;</code> web.config element, but this is IIS-specific and doesn't seem to fit the new ASP.NET model. </p>
  
  <p>I tried:</p>
  
  <pre><code>app.Use(next =&gt; context =&gt; {
      Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo("en-AU");
      Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("en-AU");
      return next(context);
  });
  </code></pre>
  
  <p>This gets executed, but this doesn’t seem to have any effect on the request (maybe due to the extensive <code>Task</code>ing in the pipeline?) Is there a better way to accomplish this?</p>