mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-08-14 07:48:37 +02:00
Add support of the Accept_language header for UI localization
This commit is contained in:
@ -3,6 +3,7 @@
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Services\SettingService;
|
||||
use Illuminate\Support\Facades\App;
|
||||
|
||||
class SinglePageController extends Controller
|
||||
{
|
||||
@ -31,7 +32,8 @@ class SinglePageController extends Controller
|
||||
{
|
||||
return view('landing')->with([
|
||||
'appSettings' => $this->settingService->all()->toJson(),
|
||||
'lang' => $this->settingService->get('lang')
|
||||
'lang' => App::currentLocale(),
|
||||
'locales' => collect(config("2fauth.locales"))->toJson(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user