mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-07 12:13:20 +00:00
craft-update: gate translated button labels with their egui callers (#542)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user