pub fn set_translator(
ctx: &Context,
lookup: impl Fn(&str) -> Option<String> + Send + Sync + 'static,
)Expand description
Install or replace this context’s translation lookup and request a repaint.
Keys are the original English labels, including punctuation and case.
Templates passed to format_text use braces, such as "Level {0} visible";
translations may reorder or repeat those placeholders. Return None to
retain the English text. Lookups run outside egui’s context locks.