title: ASP .NET Core default language is always English
body: <p>I set the localization as described in Microsoft's blog, but the default language is always English. This is how my Startup.cs looks like with regards to the localization.</p>
  <pre><code>CultureInfo[] supportedCultures = new[]
              {
                  new CultureInfo(&quot;ar&quot;),
                  new CultureInfo(&quot;en&quot;) 
              };
  </code></pre>
  <p>In ConfigureServices method:</p>
  <pre><code>services.Configure&lt;RequestLocalizationOptions&gt;(options =&gt;
      {
          options.DefaultRequestCulture = new RequestCulture(&quot;ar&quot;, &quot;ar&quot;);
          options.SupportedCultures = supportedCultures;
          options.SupportedUICultures = supportedCultures;
      });
      services.AddLocalization(options =&gt;
      {
          options.ResourcesPath = &quot;Resources&quot;;
      });
  
      
      services.AddMvc()
      .AddViewLocalization()
      .AddDataAnnotationsLocalization();
  </code></pre>
  <p>In Configure method:</p>
  <pre><code>app.UseRequestLocalization(new RequestLocalizationOptions()
  {
      DefaultRequestCulture = new RequestCulture(&quot;ar&quot;),
      SupportedCultures = supportedCultures,
      SupportedUICultures = supportedCultures
  });
  </code></pre>