diff --git a/components/empty/EmptyLocale.cs b/components/empty/EmptyLocale.cs
index 29bf4078..35efd6ef 100644
--- a/components/empty/EmptyLocale.cs
+++ b/components/empty/EmptyLocale.cs
@@ -6,6 +6,6 @@ namespace AntDesign
{
public class EmptyLocale
{
- public string Description { get; set; }
+ public string Description { get; set; } = "No Data";
}
}
diff --git a/components/form/FormLocale.cs b/components/form/FormLocale.cs
index 711d3a9c..0aa3d7ed 100644
--- a/components/form/FormLocale.cs
+++ b/components/form/FormLocale.cs
@@ -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}";
}
}
diff --git a/components/icon/IconLocale.cs b/components/icon/IconLocale.cs
index 592ea597..3a4490d6 100644
--- a/components/icon/IconLocale.cs
+++ b/components/icon/IconLocale.cs
@@ -2,6 +2,6 @@
{
public class IconLocale
{
- public string Icon { get; set; }
+ public string Icon { get; set; } = "icon";
}
}
diff --git a/components/image/ImageLocale.cs b/components/image/ImageLocale.cs
index 6af42b63..ed3d7f9c 100644
--- a/components/image/ImageLocale.cs
+++ b/components/image/ImageLocale.cs
@@ -6,6 +6,6 @@ namespace AntDesign
{
public class ImageLocale
{
- public string Preview { get; set; }
+ public string Preview { get; set; } = "Preview";
}
}
diff --git a/components/locale-provider/GlobalLocale.cs b/components/locale-provider/GlobalLocale.cs
index c536fbfa..3c684e2f 100644
--- a/components/locale-provider/GlobalLocale.cs
+++ b/components/locale-provider/GlobalLocale.cs
@@ -6,6 +6,6 @@ namespace AntDesign
{
public class GlobalLocale
{
- public string Placeholder { get; set; }
+ public string Placeholder { get; set; } = "Please select";
}
}
diff --git a/components/locale-provider/Locale.cs b/components/locale-provider/Locale.cs
index 615bb77a..9752c58d 100644
--- a/components/locale-provider/Locale.cs
+++ b/components/locale-provider/Locale.cs
@@ -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();
}
}
diff --git a/components/modal/confirmDialog/ConfirmLocale.cs b/components/modal/confirmDialog/ConfirmLocale.cs
index 1d6ce98c..7e93d350 100644
--- a/components/modal/confirmDialog/ConfirmLocale.cs
+++ b/components/modal/confirmDialog/ConfirmLocale.cs
@@ -16,36 +16,36 @@ namespace AntDesign
///
/// OK button text
///
- public string OkText { get; set; }
+ public string OkText { get; set; } = "OK";
///
/// Cancel button text
///
- public string CancelText { get; set; }
+ public string CancelText { get; set; } = "Cancel";
///
/// Yes button text
///
- public string YesText { get; set; }
+ public string YesText { get; set; } = "Yes";
///
/// No button text
///
- public string NoText { get; set; }
+ public string NoText { get; set; } = "No";
///
/// Retry button text
///
- public string RetryText { get; set; }
+ public string RetryText { get; set; } = "Retry";
///
/// Abort button text
///
- public string AbortText { get; set; }
+ public string AbortText { get; set; } = "Abort";
///
/// Ignore button text
///
- public string IgnoreText { get; set; }
+ public string IgnoreText { get; set; } = "Ignore";
}
}
diff --git a/components/modal/modalDialog/ModalLocale.cs b/components/modal/modalDialog/ModalLocale.cs
index 8e00f529..b42e6603 100644
--- a/components/modal/modalDialog/ModalLocale.cs
+++ b/components/modal/modalDialog/ModalLocale.cs
@@ -8,11 +8,11 @@
///
/// OK button text
///
- public string OkText { get; set; }
+ public string OkText { get; set; } = "OK";
///
/// Cancel button text
///
- public string CancelText { get; set; }
+ public string CancelText { get; set; } = "Cancel";
}
}
diff --git a/components/page-header/PageHeaderLocale.cs b/components/page-header/PageHeaderLocale.cs
index 81bdb06c..778c7eec 100644
--- a/components/page-header/PageHeaderLocale.cs
+++ b/components/page-header/PageHeaderLocale.cs
@@ -6,6 +6,6 @@ namespace AntDesign
{
public class PageHeaderLocale
{
- public string Back { get; set; }
+ public string Back { get; set; } = "Back";
}
}
diff --git a/components/popconfirm/PopconfirmLocale.cs b/components/popconfirm/PopconfirmLocale.cs
index 1564dda5..f59976d4 100644
--- a/components/popconfirm/PopconfirmLocale.cs
+++ b/components/popconfirm/PopconfirmLocale.cs
@@ -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";
}
}
diff --git a/components/table/TableLocale.cs b/components/table/TableLocale.cs
index 2221b3a7..e1d39eb6 100644
--- a/components/table/TableLocale.cs
+++ b/components/table/TableLocale.cs
@@ -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
diff --git a/components/time-picker/TimePickerLocale.cs b/components/time-picker/TimePickerLocale.cs
index 0e8e0d9e..debd096f 100644
--- a/components/time-picker/TimePickerLocale.cs
+++ b/components/time-picker/TimePickerLocale.cs
@@ -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" };
}
}
diff --git a/components/transfer/TransferLocale.cs b/components/transfer/TransferLocale.cs
index 5a3721ea..6500ce3c 100644
--- a/components/transfer/TransferLocale.cs
+++ b/components/transfer/TransferLocale.cs
@@ -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; }
diff --git a/components/typography/TextLocale.cs b/components/typography/TextLocale.cs
index de5c3340..12af966e 100644
--- a/components/typography/TextLocale.cs
+++ b/components/typography/TextLocale.cs
@@ -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";
}
}
diff --git a/components/upload/UploadLocale.cs b/components/upload/UploadLocale.cs
index ca5d5553..d7416f88 100644
--- a/components/upload/UploadLocale.cs
+++ b/components/upload/UploadLocale.cs
@@ -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";
}
}