Skip to content
Advertisement

Custom Text in a href

Can someone help me how i can manage to support this to work with translation text option.

JavaScript

so i want to replace text Are you sure with text translation like : {{ trans('plugins/real-estate::dashboard.no_review') }}

To read my information from my file. Any ideas how to do it? Cause if i input it like that it just skip the pop up message and directly delete the record without show message.

Advertisement

Answer

Did you wrap with single quotes the blade bindings({{}})? It should work like this:

JavaScript

If not, then probably need to use laravel’s __('plugins/real-estate::dashboard.no_review'), so then:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement