Support the ongoing development of Laravel.io →
Architecture
Last updated 1 year ago.
0

Hi, yes you can do that, you can put that anywhere as long as it will be loaded

App::before(function()
{
    Lang::setFallback('en');
});
Last updated 1 year ago.
0

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)

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.

© 2024 Laravel.io - All rights reserved.