修复后台多语言
This commit is contained in:
parent
b65c2590b7
commit
92178afd19
|
|
@ -292,6 +292,9 @@ function locales(): array
|
|||
*/
|
||||
function locale(): string
|
||||
{
|
||||
if (is_admin()) {
|
||||
return current_user()->locale ?? 'en';
|
||||
}
|
||||
return Session::get('locale') ?? system_setting('base.locale');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue