Kirk's avatar
Level 1

Having trouble translating Auth validation

Hi folks,

Like I said in the title, I'm have trouble translating Auth validation, here is my setup.

  1. I'm using Laravel 5.3
  2. I did setup my Auth using php artisan make:auth
  3. I managed my localisation with Arcanedev's module : https://github.com/ARCANEDEV/Localization
  4. I imported Laravel-lang package for my locales
  5. fr is my app.locale, my supported locales are en, es etc...

My problem is that my auth validation is ALWAYS translated in french (aka my app default locale). Does the default Auth module have custom validation that I need to dig up and change by myself to accept additional locales or is it a more general problem and I need to have custom validation for all my forms ?

0 likes
2 replies
luddinus's avatar
luddinus
Best Answer
Level 6

Probably your auth POST request is not containing the locale in the url, so it gets the default app.locale (french in your case)

Kirk's avatar
Level 1

It seems so, thanks a lot !

Please or to participate in this conversation.