Hi, yes you can do that, you can put that anywhere as long as it will be loaded
App::before(function()
{
Lang::setFallback('en');
});
Funny coincedent, I just submitted a PR to laravel/laravel: https://github.com/laravel/laravel/pull/2800
It is already possible to just set fallback_locale
in you config/app.php
(And if you look for a faster way to translate, give my (very alpha) package a try: https://github.com/barryvdh/laravel-translation-manager)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community