Out of the box? No. You'd have to overwrite the Translator behavior to achieve that.
The whole point of using different files is to break up your translations into chunks that separate your translations in a way that makes sense. For example, your notification messages into one file, your admin panel translations, your email messages. So you can always keep a good overview.
I understand the idea behind it, but i would love to have the fallback to messages.php if no file is specified explictly
another question would be then is there a way to switch out the laravel localization to use the pure symfony translation package since that one already has that kind of behaviour built into it
at the moment i have a bigger issue that the translation replacement is not working, i made an issue about it here https://github.com/laravel/framework/issues/6307
so the pain is real, first of all the laravel localization is not working the way it's supposed to be working
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community