Badge Column Problem

TextColumn::make('translate_status')
->badge()
->color(fn (string $state): string => match ($state) {
'0' => 'gray',
'1' => 'warning',
'published' => 'success',
'rejected' => 'danger',
})

In v2, I could previously name the badge column. I have boolean values true and false, but I cannot assign special names to them. Now it says 0 or 1. Isn't there a solution to this?
Was this page helpful?