πLocalization
You can localize validation messages using a lambda expression and a .resx file containing all translations. The body of the lambda will be built into the type itself and executed at run time.
builder.OfString().For("Planet")
.Name(() => Names.Planet)
.NotEqual("sun").WithMessage(() => ErrorMessages.NotEqual);
Last updated