ant-design-blazor/components/date-picker/locale/IDateLocale.cs
James Yeung bd34858efd feat: support for globalization & localization (#578)
* 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
2020-09-07 22:46:50 +08:00

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; }
}
}