IStringLocalizer with third party DI

Viewed 2157

I'm trying to setup localization following this documentation

https://docs.microsoft.com/en-us/aspnet/core/fundamentals/localization

I assume that if you use the built in DI it just works however I'm using Simple Injector instead of the build in DI in so it complains that I haven't registered the IStringLocalizer. How do I go about registering IStringLocalizer as I obviously can't do this

container.Register<IStringLocalizer, StringLocalizer>(Lifestyle.Scoped);

Thanks

2 Answers
Related