AspNetCore-Sample icon indicating copy to clipboard operation
AspNetCore-Sample copied to clipboard

Always returning The name of Resource and not the value

Open ayadimarouen opened this issue 5 years ago • 0 comments

Here the Controller Here the DI of controller Program.cs AU.API is the name of assembly

Startup.cs

services.AddLocalization(opt => opt.ResourcesPath = "Resources");

var supportedCulture = new[] { new CultureInfo("en-US"), new CultureInfo("fr-FR") };

        var requestLocalizationOptions = new RequestLocalizationOptions
        {
            DefaultRequestCulture = new RequestCulture("fr-FR"),
            SupportedCultures = supportedCulture,
            SupportedUICultures = supportedCulture
        };

        app.UseRequestLocalization(requestLocalizationOptions);

Seems it doesn't acess to resource , what do you think the problem is?

ayadimarouen avatar Apr 15 '20 14:04 ayadimarouen