translate validation.required?

hello, how do I translate validation.required? need to translate in importer, then not have form field and cannot use ->validationMessages() any suggestions? THANK YOU
No description
Solution:
You just need to add a language file and add it. say: resource/lang/en.json ...
Jump to solution
7 Replies
Solution
toeknee
toeknee4d ago
You just need to add a language file and add it. say: resource/lang/en.json "validation.required": "Sorry, this field is Required.", do create your own my-lang.json
Zoltar
ZoltarOP4d ago
try thanks its work
Zoltar
ZoltarOP4d ago
sorry @toeknee is it possibile that the file resource/lang/it.json conflict to lang\vendor\filament-actions\it\import.php ?
toeknee
toeknee4d ago
How do you mean?
Zoltar
ZoltarOP4d ago
I edit in import.php: 'example_csv' => [ 'file_name' => 'lista_email', ], and translation not work when create it.json file It worked fine before
toeknee
toeknee4d ago
You will need to review how to override vendor languages see:https://laravel.com/docs/6.x/localization
Localization - Laravel 6.x - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Zoltar
ZoltarOP4d ago
mmm ok thanks

Did you find this page helpful?