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

Validation #16

Open
pkrobak opened this issue Jun 18, 2018 · 0 comments
Open

Validation #16

pkrobak opened this issue Jun 18, 2018 · 0 comments

Comments

@pkrobak
Copy link

pkrobak commented Jun 18, 2018

Maybe it's not issue, but this is a little problematic.

If you want to translate validation you wont to insert translate for each attribute.
Maybe there is a way to give one translation ?

To give you better knowlage what I mean:

You have a few fields in your form like : name, and lastname
There is translation for this:
'digits' => 'The :attribute must be :digits digits.',

When you do validation in laravel you want to return

The :attribute must be :digits digits.

Instead of

The name must be :digits digits.
and

The lastname must be :digits digits.

To have in your *.po file just one row translation

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

No branches or pull requests

1 participant