F
Filament10mo ago
Jo

Quick way to translate modal "Cancel" button?

Is there a quick way to translate a single button (the "Cancel" button that appears in form modals) or do I need to follow the procedure as if I was going to translate the entire framework?
Solution:
->label() on the action itself, or if using modals, you have dedicated methods like ->submitActionLabel() ->cancelActionLabel() etc
Jump to solution
2 Replies
Solution
Saade
Saade10mo ago
->label() on the action itself, or if using modals, you have dedicated methods like ->submitActionLabel() ->cancelActionLabel() etc
Jo
JoOP10mo ago
Thanks! Turns out it's actually modalSubmitActionLabel() and modalCancelActionLabel() but thanks for pointing me in the right direction!
Want results from more Discord servers?
Add your server