craft-update: gate translated button labels with their egui callers (#542)

This commit is contained in:
.CooCoo
2026-11-04 09:29:06 +01:00
committed by GitHub
parent fe4e2ff3ef
commit 893eafc086
+1
View File
@@ -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()
}