nessor's avatar

Reference lang in lang / functions in lang files

Hey, guys,

I have two questions which probably point to one solution:

  1. since my site often uses self-defined terms in texts, I would not like to have to "touch" all files individually if one of these terms changes, but rather change the term centrally. Hence the question: Is it possible that I reference another one in a lang file? For example in the lang>en>nice.php file : "The {{{__('general.newsletter')}}} is nice." which in turn references lang>en>general.php.

  2. Some texts contain links, which I put in the lang files as HTML and then insert them into Blade via {!! !!}. Is it possible to map the hyper reference in the lang files using the route() function?

Best regards, nessor

0 likes
0 replies

Please or to participate in this conversation.