Replies: 3 comments
-
Hi @mobi35 I didn't find a method to update the label on the button, you can check on vendor/backpack/crud/src/resources/views/crud/buttons/show.blade.php to replace the label need to override and update vendor/backpack/crud/src/resources/lang/en/crud.php "preview" Cheers. |
Beta Was this translation helpful? Give feedback.
-
@mobi35 When you say
do you mean that you changed the translation file? If you meant something else, my suggestion is to just use the translation file It works as expected then: 'preview' => 'View (translated)', If you do not have the translation files published, you can follow this documentation. Once you publish the files, you can change the translations freely. |
Beta Was this translation helpful? Give feedback.
-
Hello. Due to no activity, I will close this issue, please feel free to reopen or create a new one if needed. Cheers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to change this to 'view' instead of preview. how to do it? I can't find it in docs, and hopefully, teach me how to figure this out.
I tried editing the crud.php in config and added
'preview' => 'view'
but its not working, tried clearing the cache too.
What I did for now is I override the show view and I explicitly wrote 'view' instead of using the config.
Beta Was this translation helpful? Give feedback.
All reactions