Transforms input into an instance of U using the provided locale.
input
U
locale
@override U transform(T input, String locale) => lambda(input, locale);