diff --git a/src/Microsoft.AspNetCore.Localization/ApplicationBuilderExtensions.cs b/src/Microsoft.AspNetCore.Localization/ApplicationBuilderExtensions.cs index 47271237e2..24f89e3bb2 100644 --- a/src/Microsoft.AspNetCore.Localization/ApplicationBuilderExtensions.cs +++ b/src/Microsoft.AspNetCore.Localization/ApplicationBuilderExtensions.cs @@ -58,6 +58,9 @@ namespace Microsoft.AspNetCore.Builder /// /// The . /// + /// + /// This will going to instantiate a new that doesn't come from the services. + /// /// The . public static IApplicationBuilder UseRequestLocalization( this IApplicationBuilder app, @@ -105,7 +108,7 @@ namespace Microsoft.AspNetCore.Builder if (cultures.Length == 0) { - throw new ArgumentException($"The {cultures} cannot be null.", nameof(cultures)); + throw new ArgumentException("Please provide at least one culture."); } var options = new RequestLocalizationOptions()