Implements IStringLocalizer
that is bound to specific culture.
See dotnet/aspnetcore#7756 for context.
PM> Install-Package Rapal.StringLocalizerWithCulture
var services = new ServiceCollection()
.AddLocalizationWithCulture(options => options.ResourcesPath = "Resources")
.BuildServiceProvider();
var localizerFactory = services.GetRequiredService<IStringLocalizerWithCultureFactory>();
var localizer = localizerFactory.Create(typeof(MyClass), CultureInfo.GetCultureInfo("en-US"));
var translated = localizer["Hello"];