You're not using WithLocalizedMessage properly - it doesn't take a string. It should take a reference to a property that points to a resx file - this is explained in this page in the documentation
Also note that you won't be able to use client-side validation. Using custom placeholders within error messages will only work with server-side validation.
Jeremy
Also note that you won't be able to use client-side validation. Using custom placeholders within error messages will only work with server-side validation.
Jeremy