use std::borrow::Cow;
#[derive(Clone, Debug, PartialEq, Eq)]
#[cfg_attr(
feature = "serde",
derive(serde::Deserialize, serde::Serialize),
serde(default)
)]
#[non_exhaustive]
pub struct Labels {
pub close_tab: Cow<'static, str>,
pub add_tab: Cow<'static, str>,
pub close_all_tabs: Cow<'static, str>,
pub close_window: Cow<'static, str>,
pub collapse: Cow<'static, str>,
pub minimize_window: Cow<'static, str>,
pub restore_window: Cow<'static, str>,
pub show_tab_bar: Cow<'static, str>,
pub separator: Cow<'static, str>,
pub separator_between: Cow<'static, str>,
pub resize_section: Cow<'static, str>,
pub more_tools: Cow<'static, str>,
pub more_tools_in: Cow<'static, str>,
pub resize_zone: Cow<'static, str>,
pub unfold_zone: Cow<'static, str>,
pub fold_zone: Cow<'static, str>,
pub resize_flyout: Cow<'static, str>,
}
impl Labels {
pub const ENGLISH: Self = Self {
close_tab: Cow::Borrowed("Close tab"),
add_tab: Cow::Borrowed("Add tab"),
close_all_tabs: Cow::Borrowed("Close all tabs"),
close_window: Cow::Borrowed("Close window"),
collapse: Cow::Borrowed("Collapse"),
minimize_window: Cow::Borrowed("Minimize window"),
restore_window: Cow::Borrowed("Restore window"),
show_tab_bar: Cow::Borrowed("Show tab bar"),
separator: Cow::Borrowed("Resize"),
separator_between: Cow::Borrowed("Resize between {first} and {second}"),
resize_section: Cow::Borrowed("Resize {section}"),
more_tools: Cow::Borrowed("More tools"),
more_tools_in: Cow::Borrowed("More tools: {toolbar}"),
resize_zone: Cow::Borrowed("Resize {zone}"),
unfold_zone: Cow::Borrowed("Unfold {zone}"),
fold_zone: Cow::Borrowed("Fold {zone}"),
resize_flyout: Cow::Borrowed("Resize {flyout}"),
};
}
impl Default for Labels {
fn default() -> Self {
Self::ENGLISH
}
}