From 373ffa14c85ebba7b4c47af558a6ed2476653cc4 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Sun, 19 Feb 2023 22:59:20 +0100 Subject: [PATCH] Fix language definition in blade view --- app/Http/Controllers/SinglePageController.php | 3 ++- resources/views/landing.blade.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/SinglePageController.php b/app/Http/Controllers/SinglePageController.php index 3afd355a..2ee3ec51 100644 --- a/app/Http/Controllers/SinglePageController.php +++ b/app/Http/Controllers/SinglePageController.php @@ -4,8 +4,8 @@ use App\Events\ScanForNewReleaseCalled; use App\Facades\Settings; -use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\App; +use Illuminate\Support\Facades\Auth; class SinglePageController extends Controller { @@ -31,6 +31,7 @@ public function index() 'subdirectory' => $subdir, 'isDemoApp' => config('2fauth.config.isDemoApp') ? 'true' : 'false', 'isTestingApp' => config('2fauth.config.isTestingApp') ? 'true' : 'false', + 'lang' => App::getLocale(), 'locales' => collect(config('2fauth.locales'))->toJson(), /** @phpstan-ignore-line */ ]); } diff --git a/resources/views/landing.blade.php b/resources/views/landing.blade.php index 3103e3d4..a917d4ec 100644 --- a/resources/views/landing.blade.php +++ b/resources/views/landing.blade.php @@ -1,9 +1,9 @@ - + - +