F
Filament3mo ago
Glebka

Change label of the save button in edit form

How to change every filament 3 default button "save changes" label to "save", do i need to overwrite some language files? Thanks for helping!
No description
Solution:
Hi! You can publish the actions translations file with the following command: php artisan vendor:publish --tag=filament-actions-translations. After, change the aciton labels.
Jump to solution
5 Replies
Solution
Faridleo
Faridleo3mo ago
Hi! You can publish the actions translations file with the following command: php artisan vendor:publish --tag=filament-actions-translations. After, change the aciton labels.
Glebka
GlebkaOP3mo ago
I published and changed label but it didnt help, maybe i changed it in a wrong place
No description
No description
No description
Glebka
GlebkaOP3mo ago
no, i get it, i changes the wrong file, you was right
blink
blink2mo ago
What if I need to change label only for certain recources?
dissto
dissto2mo ago
For an individual resource on your EditX class you could do something like that:
protected function getSaveFormAction(): Action
{
return parent::getSaveFormAction()
->label('hi');
}
protected function getSaveFormAction(): Action
{
return parent::getSaveFormAction()
->label('hi');
}
🤔
Want results from more Discord servers?
Add your server