Level 35
Is this what you are looking for https://laravel.com/docs/6.x/localization#replacing-parameters-in-translation-strings
1 like
Is there any way possible to provide a style class to a lang string in the manner of an attribute?
'accepted' => 'The :attribute must be accepted.',
lang/en
<?php
return [
'hello' => 'Hello',
'test' => 'How are you today?',
'test' => 'How are <span class="red">you</span> today?', //
];
https://stackoverflow.com/questions/30810776/how-can-i-use-html-tags-in-a-laravel-localization-file
Found the solution, here.
Please or to participate in this conversation.