ant-design-blazor/components/modal/confirmDialog/ConfirmLocale.cs
zxyao 1bdece0ea8 feat(module: modal): add locale for Modal and Confirm (#932)
* 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
2020-12-29 23:34:18 +08:00

52 lines
1.2 KiB
C#

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Text;
namespace AntDesign
{
/// <summary>
/// Confirm dialog locale
/// </summary>
public class ConfirmLocale
{
/// <summary>
/// OK button text
/// </summary>
public string OkText { get; set; }
/// <summary>
/// Cancel button text
/// </summary>
public string CancelText { get; set; }
/// <summary>
/// Yes button text
/// </summary>
public string YesText { get; set; }
/// <summary>
/// No button text
/// </summary>
public string NoText { get; set; }
/// <summary>
/// Retry button text
/// </summary>
public string RetryText { get; set; }
/// <summary>
/// Abort button text
/// </summary>
public string AbortText { get; set; }
/// <summary>
/// Ignore button text
/// </summary>
public string IgnoreText { get; set; }
}
}