translation Provider
fun <T, F : ValidatedField<T>> F.translationProvider(provider: BiFunction<T, String, MutableText?>): F
Provides a custom translation provider implementation for the receiver field
Return
F the receiver is passed through
Author
fzzyhmstrs
Since
0.7.5
Parameters
F
the subtype of validated field
T
the type that the validated field stores
provider
BiFunction<T, String, MutableText?> A translation provider. It is supplied the current stored value as well as the fields translation key. The output text is nullable. If null is returned, the standard translation mechanism will be used.