Skip to content

Always returning The name of Resource and not the value  #8

Description

@ayadimarouen

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions