diff --git a/src/Microsoft.AspNet.Mvc.DataAnnotations/DependencyInjection/MvcDataAnnotationsMvcCoreBuilderExtensions.cs b/src/Microsoft.AspNet.Mvc.DataAnnotations/DependencyInjection/MvcDataAnnotationsMvcCoreBuilderExtensions.cs index cf2e5a0b68..2e668806e5 100644 --- a/src/Microsoft.AspNet.Mvc.DataAnnotations/DependencyInjection/MvcDataAnnotationsMvcCoreBuilderExtensions.cs +++ b/src/Microsoft.AspNet.Mvc.DataAnnotations/DependencyInjection/MvcDataAnnotationsMvcCoreBuilderExtensions.cs @@ -31,6 +31,21 @@ namespace Microsoft.Extensions.DependencyInjection return builder; } + /// + /// Adds MVC data annotations localization to the application. + /// + /// The . + /// The . + public static IMvcCoreBuilder AddDataAnnotationsLocalization(this IMvcCoreBuilder builder) + { + if (builder == null) + { + throw new ArgumentNullException(nameof(builder)); + } + + return AddDataAnnotationsLocalization(builder, setupAction: null); + } + /// /// Registers an action to configure for MVC data /// annotations localization.