/// <summary>
 /// Adds MVC data annotations localization with inheritance to the application.
 /// </summary>
 /// <params>
 /// <param name="builder">The <see cref="IMvcCoreBuilder" />.</param>
 /// </params>
 /// <returns>The <see cref="IMvcCoreBuilder" />.</returns>
 public static IMvcCoreBuilder AddDataAnnotationsLocalizationWithInheritance(this IMvcCoreBuilder builder)
 {
     return(builder.AddDataAnnotationsLocalization(setup =>
     {
         setup.DataAnnotationLocalizerProvider = (type, factory) =>
                                                 new InheritingLocalizerProvider(type, factory);
     }));
 }