zerospam / laravel-gettext

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

[Question] What about Validation? #10

Closed pierreberchtold closed 6 years ago

pierreberchtold commented 6 years ago

Is there any best practice to handle validation like login errors?

Belphemur commented 6 years ago

What I've done is to take all the string into the validation.php file and pass them into _i() method.

pierreberchtold commented 6 years ago

Thank you for you answer. I finally figured out that I had the wrong fallback locale in config/app.php so I only got the validation text keys as validation error. Now it is working fine.