F
Filament•15mo 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•15mo ago
Have you checked translations?
Gaspar
GasparOP•15mo ago
Do you mean filament published files under: lang/vendor/filament lang/vendor/filament-support
krekas
krekas•15mo ago
Everything has a translation in filament. Where is this one in you pic?
Gaspar
GasparOP•15mo 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•15mo ago
Try ->placeholder(__('All') but I guess it's not translated in your language. You can PR it.
krekas
krekas•15mo 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•15mo ago
If it's a table translation is in the tables place
Gaspar
GasparOP•15mo 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•15mo ago
Then publish🤷‍♂️
Gaspar
GasparOP•15mo 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•15mo ago
No you didn't because you don't have translations for table and form
Gaspar
GasparOP•15mo ago
Thank you!

Did you find this page helpful?