Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filamentβ€’2y agoβ€’
5 replies
Chris

Always translate all labels?

Is there a way to always translate all labels? I keep adding
->translateLabel()
->translateLabel()
to everything but i am thinking there must be an easier way to do this. πŸ‘‹ to @Povilas K and #filament-daily πŸ˜„

Maybe this question will end up there!? ❀️
Solution
I think you can use this

use Filament\Forms\Components\Field;
use Filament\Tables\Columns\Column;
...

return $panel
    ->bootUsing(function () {

        Field::configureUsing(function (Field $field) {
            $field->translateLabel();
        });
        
        Column::configureUsing(function (Column $column) {
            $column->translateLabel();
        });
    })
use Filament\Forms\Components\Field;
use Filament\Tables\Columns\Column;
...

return $panel
    ->bootUsing(function () {

        Field::configureUsing(function (Field $field) {
            $field->translateLabel();
        });
        
        Column::configureUsing(function (Column $column) {
            $column->translateLabel();
        });
    })


or in the AppServiceProvider
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel β€’ Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Translate labels in TextColumn->badge()
FilamentFFilament / β“β”Šhelp
3y ago
How to translate "All" in filter
FilamentFFilament / β“β”Šhelp
3y ago
Dynamically translate labels using configureUsing by adding a new translatable label
FilamentFFilament / β“β”Šhelp
3y ago
SubNavigation labels
FilamentFFilament / β“β”Šhelp
3y ago