mardi 3 septembre 2019

How to localize validation errors in Laravel but keeping logs in English?

I need to localize a Laravel application in 5 languages, namely I want translated validation messages in http error responses.

I know that it's possible to create a 'resources/{language}/validation.php' file for each language but I want also keep the related logs always in English to let them be consulted by foreign developers.

I would avoid to write or istantiate a new validation component to do it.

How would you handle it?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/32tHc0y
via IFTTT

Aucun commentaire:

Enregistrer un commentaire