Jun 22, 2020
0
Level 1
Reference lang in lang / functions in lang files
Hey, guys,
I have two questions which probably point to one solution:
-
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.
-
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
Please or to participate in this conversation.