fixed admin login
This commit is contained in:
parent
9c05241727
commit
e248d596f4
|
|
@ -17,7 +17,7 @@ class SetLocaleAdmin
|
|||
*/
|
||||
public function handle(Request $request, Closure $next)
|
||||
{
|
||||
$currentLocale = current_user()->locale ?? 'en';
|
||||
$currentLocale = current_user()->locale ?? 'zh_cn';
|
||||
if (in_array($currentLocale, admin_languages())) {
|
||||
App::setLocale($currentLocale);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'plugins_index' => 'Login to beikeshop backend',
|
||||
'plugins_index' => 'Login to Admin Panel',
|
||||
'log_in' => 'Log In',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -10,6 +10,6 @@
|
|||
*/
|
||||
|
||||
return [
|
||||
'plugins_index' => '登录到 beikeshop 后台',
|
||||
'plugins_index' => '登录到 BeikeShop 后台',
|
||||
'log_in' => '登录',
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue