How to add html tag in json tranlation file

Posted 1 year ago by [email protected]

I have created json translation file : en.json i would like to add html tag to the translation string

{ "Hello :user, How are you ?" : "Hello :user, how are you?" }

When i am using it in blade something like this

{{ __('Hello :user, How are you ?', ['user' => $guest])}} or {!! __('Hello :user, How are you ?', ['user' => $guest]) !!}

both does not work.

Any idea how i render that html tag using json translation file.

Thank you

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.