Skip to content

assign culture in runtime #53

@vovanb

Description

@vovanb

I want to configure culture in appsettings.json. If exist a way to assign culture in runtime?
I tried in startup.cs put below

            const string culture = "fr-FR";
            CultureInfo ci = CultureInfo.GetCultureInfo(culture);

            Thread.CurrentThread.CurrentCulture = ci;
            Thread.CurrentThread.CurrentUICulture = ci;

But it did not help....

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