Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default locale for Coldbox validation #14

Open
lmajano opened this issue Mar 8, 2016 · 0 comments
Open

Default locale for Coldbox validation #14

lmajano opened this issue Mar 8, 2016 · 0 comments

Comments

@lmajano
Copy link
Contributor

lmajano commented Mar 8, 2016

When validating in ColdBox, pull the current locale by default so you don't have to change this:

validateModel( user );

to this:

validateModel( target = user, locale = getFWLocale() );

everywhere in your code just to use the i18n Integration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant