title: DotNet core data annotation localization returns resource key instead of resource value
body: <p>I need to localize a data annotation error message in the DotNet core. I have created a SharedResource class, but the validation summary returns the resource's key instead of the resource's value.</p>
  
  <pre><code>services.AddRazorPages()
              .AddViewLocalization(LanguageViewLocationExpanderFormat.Suffix)
             .AddDataAnnotationsLocalization(options =&gt;
             {
                 options.DataAnnotationLocalizerProvider = (type, factory) =&gt;
                     factory.Create(typeof(SharedResources));
             });
  </code></pre>