title: ASP.Net Core localization
body: <p>ASP.Net core features <a href="https://docs.asp.net/en/latest/fundamentals/localization.html" rel="noreferrer">new support for localization</a>.</p>
  
  <p>In my project I need only one language. For most of the text and annotations I can specify things in my language, but for text coming from ASP.Net Core itself the language is English.</p>
  
  <p>Examples:</p>
  
  <ul>
  <li>Passwords must have at least one uppercase ('A'-'Z').</li>
  <li>Passwords must have at least one digit ('0'-'9').</li>
  <li>User name 'x@x.com' is already taken.</li>
  <li>The E-post field is not a valid e-mail address.</li>
  <li>The value '' is invalid.</li>
  </ul>
  
  <p>I've tried setting the culture manually, but the language is still English.
  </p>
  
  <pre><code>app.UseRequestLocalization(new RequestLocalizationOptions
  {
      DefaultRequestCulture = new RequestCulture("nb-NO"),
      SupportedCultures = new List&lt;CultureInfo&gt; { new CultureInfo("nb-NO") },
      SupportedUICultures = new List&lt;CultureInfo&gt; { new CultureInfo("nb-NO") }
  });
  </code></pre>
  
  <p>How can I change the language of ASP.Net Core, or override its default text?</p>