Translate button
Created 8 years ago by cchinopoulosIn the video module tutorial if i use a button like this:
'videos' => [ 'buttons' => [ 'create' => [ 'text' => 'Add', 'icon' => 'fa fa-plus', 'type' => 'success', ], ], ],
how to 'target' it in order to translate it from within the resources/lang/en/button.php file.
ryanthompson
—
8 years ago
You've already provided the text in the button definition so remove that and the key will be revealed - in your case it would be create
which is defaulted anyways. If you did new_video => ...
or create_video => ...
then you could customize it.
You can also change the text
property to a translatable string!
I've tried:
'create' => 'Add NEW Video',
but it doesn't work as if i had used a magic button
'new_video' => 'Add NEW Video',