Skip to main content

text

Function text 

Source
pub fn text(ctx: &Context, english: impl AsRef<str>) -> String
Expand description

Resolve a UI label through the host lookup, falling back to its English text.

This also lets hosts use the same lookup in their own controls. Translation changes presentation only; keep identifiers and stored values in their original form. Numeric and date formatting use the chart’s formatters.