title: How to reference a resource file from a Model in ASP.Net Core (3.1)?
body: <p>So, I read all about the new localization system in ASP.Net Core (3.1) and successfully made use of the <code>IStringLocalizer&lt;MyController&gt;</code> and the <code>IViewLocalizer&lt;MyView&gt;</code>. I also could use the localization for the <code>[DisplayName("Property description")</code> in Models.</p>
  
  <p>Below what I seem <em>unable</em> to do:
  In good old .Net Framework I could do this:</p>
  
  <pre><code> public class Month
  {
      public int MonthNumber { get; set; }
  
      public string  Name
      {
          get
          {
              switch(MonthNumber)
              {
                  case 1:
                      return Properties.Resources.Jan;
                  case 2:
                      return Properties.Resources.Feb;
                  default:
                      return "?";
              }
          }
      }
  </code></pre>
  
  <p>But how can I do this in a Model in ASP.Net Core 3.1?</p>