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?
12 Replies
Have you checked translations?
Do you mean filament published files under:
lang/vendor/filament
lang/vendor/filament-support
Everything has a translation in filament. Where is this one in you pic?
It is located in FILTER (it is described in my post title also).
This "All" is the first element in Filter dropdown list..
Try
->placeholder(__('All')
but I guess it's not translated in your language. You can PR it.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
If it's a table translation is in the tables place
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
Then publish🤷‍♂️
I did.
hm. i guess it is my bad.
i should use also
i only used the "main" command:
No you didn't because you don't have translations for table and form
Thank you!