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

Method returning the localized string for a specific WeekDay.

Both short e.g. Th and long translations e.g. Thursday are suppported.

Method returning the localized string for a specific Month.

Both short e.g. Dec and long translations e.g. December are suppported.

Implementors