In ASP core 1.0, when working with Localization, do I need to create a dummy class?
<p>So, I'm having trouble getting the Localization working, I'm learning using <a href="https://www.dropbox.com/s/e11jrxp1qlgyj56/locDoc.docx?dl=0" rel="nofollow">https://www.dropbox.com/s/e11jrxp1qlgyj56/locDoc.docx?dl=0</a> which is a draft for the official documentation. I can't tell if the problem I'm encountering is the VS ResX problem, or that I've missed something. </p>

<p>There are a lot of references to the dummy file when you look up Localization examples, but these are mostly out of date. They create the resx but then have a dummy class of the same name. </p>

<p>So my question is do I need the dummy file if I use the below logic (note that the resx DOES NOT have a .cs designer behind it).</p>

<pre><code>public class RetailerController
{
    private readonly IStringLocalizer&lt;RetailerController&gt; _localizer;
    public RetailerController(IStringLocalizer&lt;RetailerController&gt; localizer)    
    {
        _localizer = localizer;    
    }
    public string Test() 
    {    
        return _localizer["Test"];
    }
}
</code></pre>

<p>I've set up the resource path to be a directory called Resource, this is the Resource Directory:</p>

<pre><code>/Resource
    /Controllers
        RetailerController.en-GB.resx
</code></pre>

<p>At the moment, it just returns "Test" as opposed to the "Test SUCCESS" which is found in the resx.</p>

<p>Many thanks!</p>