Trait cursive_calendar_view::Locale
source ·
[−]pub trait Locale {
fn week_day(day: WeekDay, long_text: bool) -> &'static str;
fn month(month: Month, long_text: bool) -> &'static str;
}
Expand description
Trait for localization of a CalendarView
.
Required methods
Method returning the localized string for a specific WeekDay
.
Both short e.g. Th
and long translations e.g. Thursday
are suppported.