[Fixes #4204] React to changes in Localization.
This commit is contained in:
parent
e9b766fe80
commit
63e818b2fe
|
|
@ -17,8 +17,15 @@ namespace Microsoft.AspNetCore.Mvc.Localization.Internal
|
|||
Action<LocalizationOptions> setupAction)
|
||||
{
|
||||
AddMvcLocalizationServices(services, format, setupAction);
|
||||
|
||||
services.AddLocalization(setupAction);
|
||||
|
||||
if (setupAction == null)
|
||||
{
|
||||
services.AddLocalization();
|
||||
}
|
||||
else
|
||||
{
|
||||
services.AddLocalization(setupAction);
|
||||
}
|
||||
}
|
||||
|
||||
// To enable unit testing only 'MVC' specific services
|
||||
|
|
|
|||
Loading…
Reference in New Issue