From 893eafc086baf4816932342e0a2f982c5eaf3714 Mon Sep 17 00:00:00 2001 From: ".CooCoo" Date: Wed, 4 Nov 2026 00:29:06 -0800 Subject: [PATCH] craft-update: gate translated button labels with their egui callers (#542) --- crates/update/src/translate.rs | 1 + 1 file changed, 1 insertion(+) 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() }