Added empty string as a default resourcesPath
This commit is contained in:
parent
f385619bcf
commit
eca0e34740
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user