Skip to main content

LocaleSetter

Type Alias LocaleSetter 

Source
pub type LocaleSetter = Arc<dyn Fn(&str) -> Option<LocaleChange> + Send + Sync>;
Expand description

Switches one app to another locale, answering with what changed, or None when the tag is not a locale at all and nothing moved.

Naming a locale the app has no catalogue for is not a failure: every message falls back, which is the rule startup already follows.

Aliased Typeยง

pub struct LocaleSetter { /* private fields */ }