MVC 3 - Wrong property name in javascript validation while switching ui culture

May 2, 2013 at 12:50 PM
Hi,

Using WithLocalizedMessage works with javascript as expected but when using the format string arg {PropertyName}. The property name is still the initial language after switching to another ui culture. (I'm using Displayattributes on my viewmodel).

Is there a way to fix/work around this?

Thnx,
Martijn
Coordinator
May 2, 2013 at 1:36 PM
Hi Martijn

Using a localized DisplayAttribute isn't something that FluentValidation currently supports. I'll get this added to the next version.

Jeremy
Coordinator
May 2, 2013 at 1:59 PM
Implemented in latest commit.

Jeremy
May 2, 2013 at 2:10 PM
Thanks, that was quick.

Martijn