修复后台多语言

This commit is contained in:
Edward Yang 2022-08-26 10:45:09 +08:00
parent b65c2590b7
commit 92178afd19
1 changed files with 3 additions and 0 deletions

View File

@ -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');
}