Added empty string as a default resourcesPath

This commit is contained in:
Developer 02 2024-05-02 17:25:39 +02:00
parent f385619bcf
commit eca0e34740

View File

@ -17,7 +17,7 @@ namespace DigitalData.Core.API
/// <param name="services">The IServiceCollection to add services to.</param>
/// <param name="resourcesPath">The path to the resource files used for localization.</param>
/// <returns>The IServiceCollection for chaining.</returns>
public static IServiceCollection AddCookieBasedLocalizer(this IServiceCollection services, string resourcesPath)
public static IServiceCollection AddCookieBasedLocalizer(this IServiceCollection services, string resourcesPath = "")
{
// Adds localization services with the specified resources path.
services.AddLocalization(options => options.ResourcesPath = resourcesPath)