coderello / laravel-nova-lang

🌌 Language files for Laravel Nova translated into 40+ languages. Feel free to submit your language or update an existing one!
https://novapackages.com/packages/coderello/laravel-nova-lang
MIT License
426 stars 195 forks source link

Validation.php Strings missing #246

Closed e-reifer closed 3 years ago

e-reifer commented 4 years ago

I've been using the German translations but the Validation strings are missing.

Event the English ones are not being displayed. I just get the "validation.required" string.

I tried to change the resources/lang/de/validation.php file and add the string but that does not fix the error. When I force publish after changes to the validation.php file, it reverts back to its previous state.

How do I apply the German translations for the validation fields?

Edit: If I change the locale in my config/app.php to "en", it is using the German translations for the Validation.

kitbs commented 3 years ago

Hallo @e-reifer

This package only provides the validation translations for the two Laravel Nova strings "attached" and "relatable" (see validation.php).

The file is published to resources/lang/vendor/nova/de/validation.php, not to resources/lang/de/validation.php. This package has no effect on the file you have mentioned.

You seem to be talking about the "required" etc. strings which are standard Laravel validation, and are provided by a different package: caouecs/laravel-lang.