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