Update Laravel validation messages translations

This commit is contained in:
Matteo Gheza 2024-01-08 22:32:24 +01:00
parent 84beeda8fe
commit a7a18a6b6b
4 changed files with 53 additions and 1 deletions

1
backend/lang/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
!passwords.php

View File

@ -0,0 +1,11 @@
<?php
declare(strict_types=1);
return [
'reset' => 'Your password has been reset.',
'sent' => 'We have emailed your password reset link.',
'throttled' => 'Please wait before retrying.',
'token' => 'This password reset token is invalid.',
'user' => 'We can\'t find a user with that email address.',
];

View File

@ -0,0 +1,9 @@
<?php
return [
'reset' => 'La password è stata reimpostata!',
'sent' => 'Ti abbiamo inviato una email con il link per il reset della password!',
'throttled' => 'Per favore, attendi prima di riprovare.',
'token' => 'Questo token di reset della password non è valido.',
'user' => 'Non riusciamo a trovare un utente con questo indirizzo email.',
];

View File

@ -4,5 +4,36 @@ return [
"required" => "Il campo :attribute è richiesto.",
"unique" => "Il campo :attribute deve essere unico.",
"email" => "Il campo :attribute deve essere un indirizzo email valido.",
"exists" => "Il campo :attribute non esiste."
"exists" => "Il campo :attribute non esiste.",
'before' => 'Il campo :attribute deve essere una data precedente a :date.',
'before_or_equal' => 'Il campo :attribute deve essere una data precedente o uguale a :date.',
'boolean' => 'Il campo :attribute deve essere vero o falso.',
'date' => 'Il campo :attribute deve essere una data valida.',
'file' => 'Il campo :attribute deve essere un file.',
'image' => 'Il campo :attribute deve essere un\'immagine.',
'max' => [
'numeric' => 'Il campo :attribute non può essere maggiore di :max.',
'file' => 'Il campo :attribute non può essere maggiore di :max kilobytes.',
'string' => 'Il campo :attribute non può essere maggiore di :max caratteri.',
'array' => 'Il campo :attribute non può avere più di :max elementi.',
],
'mimes' => 'Il campo :attribute deve essere un file di tipo: :values.',
'mimetypes' => 'Il campo :attribute deve essere un file di tipo: :values.',
'min' => [
'numeric' => 'Il campo :attribute deve essere almeno :min.',
'file' => 'Il campo :attribute deve essere almeno :min kilobytes.',
'string' => 'Il campo :attribute deve essere almeno :min caratteri.',
'array' => 'Il campo :attribute deve avere almeno :min elementi.',
],
'missing' => 'Il campo :attribute è richiesto.',
'present' => 'Il campo :attribute deve essere presente.',
'size' => [
'numeric' => 'Il campo :attribute deve essere :size.',
'file' => 'Il campo :attribute deve essere :size kilobytes.',
'string' => 'Il campo :attribute deve essere :size caratteri.',
'array' => 'Il campo :attribute deve contenere :size elementi.',
],
'string' => 'Il campo :attribute deve essere una stringa.',
'unique' => 'Il campo :attribute è già stato utilizzato.',
'uploaded' => 'Il campo :attribute non è stato caricato correttamente.',
];