nova_forms

Function provide_translation

Source
pub fn provide_translation<F, T, IV>(f: F)
where T: Clone + 'static, F: Fn(T) -> IV + 'static, IV: Into<TextProp> + 'static,
Expand description

Adds custom translations to a type T. This is useful for adding custom error messages to error enums or other elements.