tanthammar / tall-forms

Laravel Livewire (TALL-stack) form generator with realtime validation, file uploads, array fields, blade form input components and more.
https://github.com/tanthammar/tall-forms/wiki
MIT License
694 stars 86 forks source link

Translations not working #101

Closed Leeuwenkasteel closed 2 years ago

Leeuwenkasteel commented 2 years ago

Hello, I realy like your packages, but when i updated to version 8 there is a problem with the languages files. I see tf::form.alerts.updated-success instead of The form was saved successfully.

tanthammar commented 2 years ago

Hi. Thank you! Did you publish the new language files? Have you merged the updated config? Cleared cache/config?

tanthammar commented 2 years ago

Also which language and fallback Lang have you set in config?

Leeuwenkasteel commented 2 years ago

That was it, I have set my fallback on Dutch. I put it back to EN and it works fine

simonbuehler commented 2 years ago

the problem is that in https://github.com/laravel/framework/blob/c62385a23c639742b3b74a4a78640da25e6b782b/src/Illuminate/Translation/FileLoader.php#L103 the language overrides are searched in /var/www/test/resources/lang/vendor/tf/de/form.php while they get published to /var/www/test/resources/lang/vendor/tall-forms/de/form.php so they are not found!

please publish to the namespaced folder