© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
Patrick

Translate table column value

Can't find it in the docs. I want to display a status badge in table. The name is in english in my database, but i'd like to display the value in Dutch.
I'm not sure I can change this. Any suggestions?

 Tables\Columns\TextColumn::make('status')
                    ->label('Status')
                    ->badge()
                    ->color(fn(string $state): string => match ($state) {
                        'accepted' => 'gray',
                        'finished' => 'success',
                        'cancelled' => 'warning',
                        'failed' => 'danger',
                    })
                    ->sortable(),
 Tables\Columns\TextColumn::make('status')
                    ->label('Status')
                    ->badge()
                    ->color(fn(string $state): string => match ($state) {
                        'accepted' => 'gray',
                        'finished' => 'success',
                        'cancelled' => 'warning',
                        'failed' => 'danger',
                    })
                    ->sortable(),
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

translate badge column
FilamentFFilament / ❓┊help
2y ago
Table Column for json value
FilamentFFilament / ❓┊help
3y ago
Hide table column based on value of another column
FilamentFFilament / ❓┊help
11mo ago
table column dont display value from resource
FilamentFFilament / ❓┊help
2y ago