Support the ongoing development of Laravel.io →
Configuration Views

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?

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

tmountjr tmountjr Joined 15 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.