How i can translate the validation error message
I use filament language switcher plugin.
Solution:Jump to solution
GitHub
GitHub - Laravel-Lang/lang: List of 126 languages for Laravel Frame...
List of 126 languages for Laravel Framework, Laravel Jetstream, Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova, Laravel Spark and Laravel UI. - Laravel-Lang/lang
11 Replies
Those should be default Laravel validation messages
Solution
You can check a package like Laravel Lang:
https://github.com/Laravel-Lang/lang
GitHub
GitHub - Laravel-Lang/lang: List of 126 languages for Laravel Frame...
List of 126 languages for Laravel Framework, Laravel Jetstream, Laravel Fortify, Laravel Breeze, Laravel Cashier, Laravel Nova, Laravel Spark and Laravel UI. - Laravel-Lang/lang
Thank you so much i will check it.
I use the plugin filament switcher it's useful for this case ?
Filament switcher just switched the locale. You still need the translations
okay i understand now, thank you.
It works with this library, thank you this help so much .
You're welcome
I have a quickly question how i use eager loading for avoid N+1 problem this's my code
My eager loading is correct ?
Not sure why you need
comments.user
but apart from that it looks good.I'm didn't provide all the code.
Thank you for your help.
Hey @Aminne How did you install the lang package?
My normal translations work, but i want to use their premade messages for validation rules, and they are not used.
Did you copy any files?
Would be very grateful for any pointers... π
Laravel Lang? Did you read the docs?
https://laravel-lang.com/basic-usage.html#managing_locales
Laravel Lang Help
Basic Usage | Laravel Lang