title: ASP.NET 5 (MVC 6) - Resources Localization
body: <p>I have spent about one week trying to understand how Localization is going to work in ASP.NET Core 1.0. I have tested a lot of options, but I can't make it working.</p>
  
  <p>I have read about the bug in <a href="https://github.com/aspnet/Localization/issues/153" rel="noreferrer">Visual Studio</a>, I have read all articles about how it's working right now (<a href="http://www.jerriepelser.com/blog/how-aspnet5-determines-culture-info-for-localization" rel="noreferrer">Article1</a>, <a href="http://www.jerriepelser.com/blog/setting-thread-culture-aspnet5" rel="noreferrer">Article2</a>, <a href="http://damienbod.com/2015/10/21/asp-net-5-mvc-6-localization/" rel="noreferrer">Article3</a>) and I have check and tested all about the <a href="https://github.com/aspnet/Localization/tree/dev/samples/LocalizationSample" rel="noreferrer">example</a> in the Official GitHub Repository.</p>
  
  <p><strong>My Goal:</strong></p>
  
  <p>I just want to make it works like I did in ASP.NET MVC 5.</p>
  
  <p>I have configured my Startup.cs like this:</p>
  
  <p><em>Configure Section:</em></p>
  
  <pre><code>var requestLocalizationOptions = new RequestLocalizationOptions
              {
                  // Set options here to change middleware behavior
                  SupportedCultures = new List&lt;CultureInfo&gt;
                  {
                      new CultureInfo("en-US"),
                      new CultureInfo("es-ES")
                  },
                  SupportedUICultures = new List&lt;CultureInfo&gt;
                  {
                      new CultureInfo("en-US"),
                     new CultureInfo("es-ES")
  
                  }
              };
  
              app.UseRequestLocalization(requestLocalizationOptions, defaultRequestCulture: new RequestCulture("en-US"));
  </code></pre>
  
  <p><em>Configure Services Section:</em></p>
  
  <pre><code>// Add MVC services to the services container.
              services
                  .AddMvc()
                  .AddViewLocalization(options =&gt; options.ResourcesPath = "Resources")
                  .AddDataAnnotationsLocalization();
  </code></pre>
  
  <p>In my folder Resources, I have my .resx files. I have copied it from the official example, but no way... No errors, just not working.</p>
  
  <p>If I test the Localization example of the official Repo, it works. But I can't modified to adapt to MVC 6.</p>
  
  <p>I have created a repository on GitHub for my code and test it. (<a href="https://github.com/chemitaxis/Localization.StackOverflow" rel="noreferrer">https://github.com/chemitaxis/Localization.StackOverflow</a>)</p>
  
  <p>Can someone please help me? I think a lot of people is having these problems.</p>
  
  <p>Thanks!!</p>