routes.php 328 Bytes
Newer Older
Nicolas Widart's avatar
Nicolas Widart committed
1 2
<?php

3 4 5 6 7 8 9 10 11 12 13
/*
|--------------------------------------------------------------------------
| Language Settings
|--------------------------------------------------------------------------
*/
$lang = Request::getPreferredLanguage(['fr', 'en', 'de']);

if (App::environment() == 'testing') {
    $lang = 'fr';
}

14
App::setLocale($lang);