zerospam / laravel-gettext

Adds localization support to laravel applications using PoEdit and GNU-Gettext.
99 stars 56 forks source link

Validation #16

Open pkrobak opened 6 years ago

pkrobak commented 6 years ago

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