diff --git a/crates/update/src/translate.rs b/crates/update/src/translate.rs index 53995b2a..58a24e29 100644 --- a/crates/update/src/translate.rs +++ b/crates/update/src/translate.rs @@ -80,6 +80,7 @@ impl Note { /// A button label: `label` (title case, the lookup key) translated, then in capitals, as the card /// draws its buttons. +#[cfg(any(feature = "egui", test))] pub(crate) fn button(translate: Translate, label: &str) -> String { translate(label, &[]).to_uppercase() }