F
Filament•14mo ago
Gaspar

How to translate "All" in filter

I'm localizing my project. I have my localization in JSON file and it contains this string but it is not working in Filament. Couldn't find it in filament translation files (after publish them) also. Where is it?
No description
12 Replies
krekas
krekas•14mo ago
Have you checked translations?
Gaspar
GasparOP•14mo ago
Do you mean filament published files under: lang/vendor/filament lang/vendor/filament-support
krekas
krekas•14mo ago
Everything has a translation in filament. Where is this one in you pic?
Gaspar
GasparOP•14mo ago
It is located in FILTER (it is described in my post title also). This "All" is the first element in Filter dropdown list..
MohamedSabil83
MohamedSabil83•14mo ago
Try ->placeholder(__('All') but I guess it's not translated in your language. You can PR it.
krekas
krekas•14mo ago
GitHub
filament/packages/tables/resources/lang/en/table.php at 3.x · filam...
A collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS. - filamentphp/filament
krekas
krekas•14mo ago
If it's a table translation is in the tables place
Gaspar
GasparOP•14mo ago
Well. I do not have those files in filament published language files... I have only: lang/vendor/filament/en/pages/dashboard.php lang/vendor/filament/en/resources/pages/(4 files) lang/vendor/filament/en/widgets/(2 files) lang/vendor/filament/en/global-search.php lang/vendor/filament/en/layout.php lang/vendor/filament/en/login.php lang/vendor/filament-support/en/actions/(13 files) lang/vendor/filament-support/en/components/(2 files) No table.php NB! i have v.2
krekas
krekas•14mo ago
Then publish🤷‍♂️
Gaspar
GasparOP•14mo ago
I did. hm. i guess it is my bad. i should use also
php artisan vendor:publish --tag=tables-translations
php artisan vendor:publish --tag=tables-translations
i only used the "main" command:
php artisan vendor:publish --tag=filament-translations
php artisan vendor:publish --tag=filament-translations
krekas
krekas•14mo ago
No you didn't because you don't have translations for table and form
Gaspar
GasparOP•14mo ago
Thank you!
Want results from more Discord servers?
Add your server