Skip to content
This repository was archived by the owner on Nov 3, 2022. It is now read-only.
This repository was archived by the owner on Nov 3, 2022. It is now read-only.

It seems ActionFilter is too late to apply current culture #78

@csimone86

Description

@csimone86

I have create a simple MVC project and I am POSTing a DateTime value.
My model is never validated when I use your CultureSensitiveActionFilterAttribute to set the culture.
It seem that Model binding is exceuted before the action filter. The solution seems to create an IControllerActivator instead of an Action Filter. It would be great if you add the activator inside your nuget package.

Here the solution I have found:
https://stackoverflow.com/questions/8226514/best-place-to-set-currentculture-for-multilingual-asp-net-mvc-web-applications

What do you think?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions