mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 17:31:42 +08:00
bd34858efd
* feat: add locale * feat: add locale interfaces * fix: add locale interfaces for components * fix: use local classes instead of interfaces * feat: implement the locale provider * feat: make some components to support localization * fix: default language * fix: test * chore: remove the useless reference
41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
#nullable enable
|
|
|
|
namespace AntDesign
|
|
{
|
|
public interface IDateLocale
|
|
{
|
|
string DateFormat { get; }
|
|
|
|
/// <summary>
|
|
/// The start day of week should be either Monday or Sunday according to the CultureInfo
|
|
/// </summary>
|
|
string[] ShortWeekDays { get; }
|
|
|
|
string Year { get; }
|
|
string Month { get; }
|
|
string Week => "Week";
|
|
string Today { get; }
|
|
bool MonthBeforeYear { get; }
|
|
string YearFormat { get; }
|
|
string MonthFormat { get; }
|
|
string Ok { get; }
|
|
string Now { get; }
|
|
string SelectDate { get; }
|
|
string SelectWeek { get; }
|
|
string SelectMonth { get; }
|
|
string SelectQuarter { get; }
|
|
string SelectYear { get; }
|
|
string SelectTime { get; }
|
|
string StartOfDate { get; }
|
|
string EndOfDate { get; }
|
|
string StartOfWeek { get; }
|
|
string EndOfWeek { get; }
|
|
string StartOfMonth { get; }
|
|
string EndOfMonth { get; }
|
|
string StartOfYear { get; }
|
|
string EndOfYear { get; }
|
|
string StartOfQuarter { get; }
|
|
string EndOfQuarter { get; }
|
|
}
|
|
}
|