I am trying to add localization to a DNX 4.5.1 project in Visual studio 2015. I have two resx .
Culture.resx Culture.sv.resx
Both are inline by setting resource in project.json
"resource": "**\\*.resx"
I am creating a ResourceManager .
var resourceManager = new ResourceManager("Core.Culture", typeof(CultureManager).Assembly);
And try to get a localized string. This gives me the value from Culture.resx as expected.
var result = resourceManager.GetString("Test1");
If I try to get the value in Sweden, I just keep getting the default value.
var result = resourceManager.GetString("Test1", new CultureInfo("sv-SE"));
Is there any problem with creating satellite assemblies for non-standard languages?
source share