Laravel Localization: Configuring The Locale

Route::get('welcome/{locale}', function ($locale) {
    App::setLocale($locale);

    //
});
'fallback_locale' => 'en',

You may configure a "fallback language", which will be used when the active language does not contain a given translation string.

Determining The Current Locale

$locale = App::getLocale();

if (App::isLocale('en')) {
    //
}

Laravel Localization: Configuring The Locale — Structure map

Clickable & Draggable!

Laravel Localization: Configuring The Locale — Related pages: