fix(module: locale-provider): add missing nodes default values (#1710)

This commit is contained in:
anranruye 2021-07-06 01:10:16 +08:00 committed by GitHub
parent 65857a63b7
commit e4e1289529
15 changed files with 71 additions and 71 deletions

View File

@ -6,6 +6,6 @@ namespace AntDesign
{
public class EmptyLocale
{
public string Description { get; set; }
public string Description { get; set; } = "No Data";
}
}

View File

@ -11,35 +11,35 @@ namespace AntDesign.Form.Locale
public class DefaultValidateMessages
{
public string Default { get; set; }
public string Required { get; set; }
public string Enum { get; set; }
public string Whitespace { get; set; }
public DateLocale Date { get; set; }
public TypesLocale Types { get; set; }
public string Default { get; set; } = "Field validation error ${label}";
public string Required { get; set; } = "Please enter ${label}";
public string Enum { get; set; } = "${label} must be one of [${enum}]";
public string Whitespace { get; set; } = "${label} cannot be a blank character";
public DateLocale Date { get; set; } = new();
public TypesLocale Types { get; set; } = new();
}
public class DateLocale
{
public string Format { get; set; }
public string Parse { get; set; }
public string Invalid { get; set; }
public string Format { get; set; } = "${label} date format is invalid";
public string Parse { get; set; } = "${label} cannot be converted to a date";
public string Invalid { get; set; } = "${label} is an invalid date";
}
public class TypesLocale
{
public string String { get; set; }
public string Method { get; set; }
public string Array { get; set; }
public string Object { get; set; }
public string Number { get; set; }
public string Date { get; set; }
public string Boolean { get; set; }
public string Integer { get; set; }
public string Float { get; set; }
public string Regexp { get; set; }
public string Email { get; set; }
public string Url { get; set; }
public string Hex { get; set; }
public string String { get; set; } = "${label} is not a valid ${type}";
public string Method { get; set; } = "${label} is not a valid ${type}";
public string Array { get; set; } = "${label} is not a valid ${type}";
public string Object { get; set; } = "${label} is not a valid ${type}";
public string Number { get; set; } = "${label} is not a valid ${type}";
public string Date { get; set; } = "${label} is not a valid ${type}";
public string Boolean { get; set; } = "${label} is not a valid ${type}";
public string Integer { get; set; } = "${label} is not a valid ${type}";
public string Float { get; set; } = "${label} is not a valid ${type}";
public string Regexp { get; set; } = "${label} is not a valid ${type}";
public string Email { get; set; } = "${label} is not a valid ${type}";
public string Url { get; set; } = "${label} is not a valid ${type}";
public string Hex { get; set; } = "${label} is not a valid ${type}";
}
}

View File

@ -2,6 +2,6 @@
{
public class IconLocale
{
public string Icon { get; set; }
public string Icon { get; set; } = "icon";
}
}

View File

@ -6,6 +6,6 @@ namespace AntDesign
{
public class ImageLocale
{
public string Preview { get; set; }
public string Preview { get; set; } = "Preview";
}
}

View File

@ -6,6 +6,6 @@ namespace AntDesign
{
public class GlobalLocale
{
public string Placeholder { get; set; }
public string Placeholder { get; set; } = "Please select";
}
}

View File

@ -11,40 +11,40 @@ namespace AntDesign.Locales
public CultureInfo CurrentCulture => new CultureInfo(LocaleName);
public PaginationLocale Pagination { get; set; }
public PaginationLocale Pagination { get; set; } = new();
public DatePickerLocale DatePicker { get; set; }
public DatePickerLocale DatePicker { get; set; } = new();
public TimePickerLocale TimePicker { get; set; }
public TimePickerLocale TimePicker { get; set; } = new();
public DatePickerLocale Calendar { get; set; }
public DatePickerLocale Calendar { get; set; } = new();
public TableLocale Table { get; set; }
public TableLocale Table { get; set; } = new();
public ModalLocale Modal { get; set; }
public ModalLocale Modal { get; set; } = new();
public ConfirmLocale Confirm { get; set; }
public ConfirmLocale Confirm { get; set; } = new();
public PopconfirmLocale Popconfirm { get; set; }
public PopconfirmLocale Popconfirm { get; set; } = new();
public TransferLocale Transfer { get; set; }
public TransferLocale Transfer { get; set; } = new();
public SelectLocale Select { get; set; }
public SelectLocale Select { get; set; } = new();
public UploadLocale Upload { get; set; }
public UploadLocale Upload { get; set; } = new();
public GlobalLocale Global { get; set; }
public GlobalLocale Global { get; set; } = new();
public PageHeaderLocale PageHeader { get; set; }
public PageHeaderLocale PageHeader { get; set; } = new();
public EmptyLocale Empty { get; set; }
public EmptyLocale Empty { get; set; } = new();
public IconLocale Icon { get; set; }
public IconLocale Icon { get; set; } = new();
public TextLocale Text { get; set; }
public TextLocale Text { get; set; } = new();
public FormLocale Form { get; set; }
public FormLocale Form { get; set; } = new();
public ImageLocale Image { get; set; }
public ImageLocale Image { get; set; } = new();
}
}

View File

@ -16,36 +16,36 @@ namespace AntDesign
/// <summary>
/// OK button text
/// </summary>
public string OkText { get; set; }
public string OkText { get; set; } = "OK";
/// <summary>
/// Cancel button text
/// </summary>
public string CancelText { get; set; }
public string CancelText { get; set; } = "Cancel";
/// <summary>
/// Yes button text
/// </summary>
public string YesText { get; set; }
public string YesText { get; set; } = "Yes";
/// <summary>
/// No button text
/// </summary>
public string NoText { get; set; }
public string NoText { get; set; } = "No";
/// <summary>
/// Retry button text
/// </summary>
public string RetryText { get; set; }
public string RetryText { get; set; } = "Retry";
/// <summary>
/// Abort button text
/// </summary>
public string AbortText { get; set; }
public string AbortText { get; set; } = "Abort";
/// <summary>
/// Ignore button text
/// </summary>
public string IgnoreText { get; set; }
public string IgnoreText { get; set; } = "Ignore";
}
}

View File

@ -8,11 +8,11 @@
/// <summary>
/// OK button text
/// </summary>
public string OkText { get; set; }
public string OkText { get; set; } = "OK";
/// <summary>
/// Cancel button text
/// </summary>
public string CancelText { get; set; }
public string CancelText { get; set; } = "Cancel";
}
}

View File

@ -6,6 +6,6 @@ namespace AntDesign
{
public class PageHeaderLocale
{
public string Back { get; set; }
public string Back { get; set; } = "Back";
}
}

View File

@ -6,8 +6,8 @@ namespace AntDesign
{
public class PopconfirmLocale
{
public string CancelText { get; set; }
public string CancelText { get; set; } = "OK";
public string OkText { get; set; }
public string OkText { get; set; } = "Cancel";
}
}

View File

@ -32,7 +32,7 @@ namespace AntDesign
public string CancelSort { get; set; } = "Click to cancel sort";
public FilterOptions FilterOptions { get; set; }
public FilterOptions FilterOptions { get; set; } = new();
}
public class FilterOptions

View File

@ -2,8 +2,8 @@
{
public class TimePickerLocale
{
public string Placeholder { get; set; }
public string Placeholder { get; set; } = "Select time";
public string[] RangePlaceholder { get; set; }
public string[] RangePlaceholder { get; set; } = new[] { "Start time", "End time" };
}
}

View File

@ -3,9 +3,9 @@
public class TransferLocale
{
public string NotFoundContent { get; set; }
public string SearchPlaceholder { get; set; }
public string ItemUnit { get; set; }
public string ItemsUnit { get; set; }
public string SearchPlaceholder { get; set; } = "Search here";
public string ItemUnit { get; set; } = "item";
public string ItemsUnit { get; set; } = "items";
public string Remove { get; set; }
public string SelectCurrent { get; set; }
public string RemoveCurrent { get; set; }

View File

@ -6,9 +6,9 @@ namespace AntDesign
{
public class TextLocale
{
public string Edit { get; set; }
public string Copy { get; set; }
public string Copied { get; set; }
public string Expand { get; set; }
public string Edit { get; set; } = "Edit";
public string Copy { get; set; } = "Copy";
public string Copied { get; set; } = "Copied";
public string Expand { get; set; } = "Expand";
}
}

View File

@ -6,14 +6,14 @@ namespace AntDesign
{
public class UploadLocale
{
public string Uploading { get; set; }
public string Uploading { get; set; } = "Uploading...";
public string RemoveFile { get; set; }
public string RemoveFile { get; set; } = "Remove file";
public string UploadError { get; set; }
public string UploadError { get; set; } = "Upload error";
public string PreviewFile { get; set; }
public string PreviewFile { get; set; } = "Preview file";
public string DownloadFile { get; set; }
public string DownloadFile { get; set; } = "Download file";
}
}