nova_forms

Function provide_translation

Source
pub fn provide_translation<F, T>(f: F)
where T: Clone + 'static, F: Fn(T) -> 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.