Uses locale config from env while install

This commit is contained in:
Yasir Turk
2022-08-08 19:00:28 +02:00
parent 3e76375f26
commit c1604d4a3e
3 changed files with 10 additions and 4 deletions

View File

@ -14,7 +14,11 @@ class Language extends Controller
*/
public function create()
{
return view('install.language.create');
$locale = config('app.locale');
if (!$locale || !array_key_exists($locale, language()->allowed())) {
$locale = 'en-GB';
}
return view('install.language.create')->with(['locale' => $locale]);
}
/**