How to load instance of IStringLocalizer without changing CurrentCulture and CurrentUICulture values in ASP.NET Core 5.0 that is different from request culture (load multiple different localisations at the same time)?
I'm currently working on endpoint that is generating documents in locale that might be different from locale in which request is running. I do not want to switch culture for current thread in mid execution. Is there an other way?
I saw that there is IStringLocalizer.WithCulture(CultureInfo) which seems like a perfect fit for this scenario but it is obsolete.