F
Filament6mo ago
TK

How to replace the reorder indicator?

When enabling reordering, the text Drag and drop the records into order. is shown. This comes from __('filament-tables::table.reorder_indicator'). Does anyone know how I can replace this text? I would like to state something like Drag and drop the :model into order..
6 Replies
LeandroFerreira
LeandroFerreira6mo ago
php artisan vendor:publish --tag=filament-tables-translations
return [
'reorder_indicator' => 'new text..',
];
return [
'reorder_indicator' => 'new text..',
];
TK
TKOP6mo ago
@Leandro Ferreira problem is that it doesn't contain a variable atm. I want to make it universal. So for each different model I have another sentence, like so: 'reorder_indicator' => 'Drag and drop the :entity into order.' But since this translation is also used by Filament itself, it breaks when I add a variable.
LeandroFerreira
LeandroFerreira6mo ago
publishing and customizing this view, I think.
TK
TKOP6mo ago
Hmm.. not the best solution, but it's a way. Any promise on this coming to Filament? As in, more control over these small labels overall through the application?
LeandroFerreira
LeandroFerreira6mo ago
you can make a PR
TK
TKOP6mo ago
I know, but by definition this is a breaking change. I'll see what I can do
Want results from more Discord servers?
Add your server