fn () => app()->getLocale(), 'translations' => function () { $json = resource_path('lang/'.app()->getLocale().'.json'); if (!file_exists($json)) { return []; } return Json::decode(file_get_contents($json)); }, ]); } }