[Fixes #4204] React to changes in Localization.

This commit is contained in:
jacalvar 2016-03-02 14:21:29 -08:00
parent e9b766fe80
commit 63e818b2fe
1 changed files with 9 additions and 2 deletions

View File

@ -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