-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
AspNetCoreLocalization/src/Localization.SqlLocalizer/DbStringLocalizer/SqlStringLocalizer.cs
Line 41 in a362dc7
return new LocalizedString(name, String.Format(localizedString.Value, arguments), localizedString.ResourceNotFound); |
parameters work as follows
using System.Linq;
public LocalizedString this[string name, params object[] arguments]
{
get
{
var localizedString = this[name];
return new LocalizedString(name, String.Format(localizedString.Value, arguments.Select(x => x.ToString()).ToArray()), localizedString.ResourceNotFound);
}
}
new LocalizationRecord(){ Key="RequiredError", ResourceKey="global", Text="The {0} field is required.", LocalizationCulture="en-GB" },
new LocalizationRecord(){ Key="Name", ResourceKey="global", Text="Name", LocalizationCulture="en-GB" },
[Required(ErrorMessage = "RequiredError")]
[Display(Name = "Name")]
public string Name { get; set; }
Metadata
Metadata
Assignees
Labels
No labels