fixed admin login

This commit is contained in:
Edward Yang 2022-08-31 12:01:55 +08:00
parent 9c05241727
commit e248d596f4
3 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

@ -10,6 +10,6 @@
*/
return [
'plugins_index' => 'Login to beikeshop backend',
'plugins_index' => 'Login to Admin Panel',
'log_in' => 'Log In',
];

View File

@ -10,6 +10,6 @@
*/
return [
'plugins_index' => '登录到 beikeshop 后台',
'plugins_index' => '登录到 BeikeShop 后台',
'log_in' => '登录',
];