In developing a client site, they would like to be able to control the localization copy used in the site without having to go through us. I can easily turn the app/lang/{language code}/*.php
files into a dot-notated CSV file and back again, but the one thing I can't figure out how to do is turn off the use of those localization files entirely. So, for instance, copy.php
might contain "foo" => "bar"
, which would be displayed in the view using {{ Lang::get('copy.foo') }}
and which would show up on their csv file as "copy.foo","bar"
. What I'd like to do is make them a view that, instead of displaying bar
, displays copy.foo
so they can reference where that line of copy shows up in the site. Is this even possible? I suppose one way would be to temporarily replace the copy file, so my array would have "foo" => "copy.foo"
...are there any better ways?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community