I use laravel's translation layer. I've been able to translate quite a few texts without any problem, except for the attributes for the rules.
Laravel lets you translate these attributes in the validations.php language file by creating an attributes array. Except that for Lomkit validation errors, the attributes are formed like this: mutate.*.email with * the object index in the request body.
It's very difficult to know at which index the error on our attribute is located in the validations.php file.
Description
I use laravel's translation layer. I've been able to translate quite a few texts without any problem, except for the attributes for the rules. Laravel lets you translate these attributes in the
validations.php
language file by creating anattributes
array. Except that for Lomkit validation errors, the attributes are formed like this:mutate.*.email
with * the object index in the request body. It's very difficult to know at which index the error on our attribute is located in thevalidations.php
file.