Skip to content

ResourceManagerWithCultureStringLocalizer class and WithCulture interface member to be removed #407

@ryanbrandenburg

Description

@ryanbrandenburg

Following up on #346.

The ResourceManagerWithCultureStringLocalizer class and WithCulture interface member were often sources of confusion for users of Localization, especially if they wanted to create their own IStringLocalizer implementation. These items give the user the impression that we expect an IStringLocalizer instance to be "per-language, per-resource", when actually they should only be "per-resource", with the language searched for determined by the CultureInfo.CurrentUICulture at execution time. To remove this source of confusion and to avoid APIs which we don't want users to use these were obsoleted in 3.0.0-preview3, and they are removed in 5.0.0.

For context, see #346 and dotnet/aspnetcore#3324.

See dotnet/aspnetcore#7756 for discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    5.0.0Announcements related to ASP.NET Core 5.0AnnouncementBreaking changeDocumentedThe breaking change has been published to the .NET Core docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions