mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-14 08:51:27 +08:00
1bdece0ea8
* feat(module: modal): add Modal locale * feat(module: confirm): locale support for zh-cn, en-us * docs: add the demo of override locale's custom text * feat: locale's json files add confirm configuration * fix: custom ButtonProps override Button[1,2,3]Text or OK(Cancel)Text * docs: using InvokeAsync to invoke StateHasChanged * docs(module: modal): add override locale de
49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
using System.Globalization;
|
|
using System.Text.Json.Serialization;
|
|
using AntDesign.Form.Locale;
|
|
|
|
namespace AntDesign.Locales
|
|
{
|
|
public class Locale
|
|
{
|
|
[JsonPropertyName("locale")]
|
|
public string LocaleName { get; set; }
|
|
|
|
public CultureInfo CurrentCulture => new CultureInfo(LocaleName);
|
|
|
|
public PaginationLocale Pagination { get; set; }
|
|
|
|
public DatePickerLocale DatePicker { get; set; }
|
|
|
|
public TimePickerLocale TimePicker { get; set; }
|
|
|
|
public DatePickerLocale Calendar { get; set; }
|
|
|
|
public TableLocale Table { get; set; }
|
|
|
|
public ModalLocale Modal { get; set; }
|
|
|
|
public ConfirmLocale Confirm { get; set; }
|
|
|
|
public PopconfirmLocale Popconfirm { get; set; }
|
|
|
|
public TransferLocale Transfer { get; set; }
|
|
|
|
public SelectLocale Select { get; set; }
|
|
|
|
public UploadLocale Upload { get; set; }
|
|
|
|
public GlobalLocale Global { get; set; }
|
|
|
|
public PageHeaderLocale PageHeader { get; set; }
|
|
|
|
public EmptyLocale Empty { get; set; }
|
|
|
|
public IconLocale Icon { get; set; }
|
|
|
|
public TextLocale Text { get; set; }
|
|
|
|
public FormLocale Form { get; set; }
|
|
}
|
|
}
|