refactor: 修改多语言相关

This commit is contained in:
2025-05-30 10:30:34 +08:00
parent 5b78a4973a
commit d816817d33
10 changed files with 156 additions and 127 deletions

View File

@@ -135,7 +135,7 @@ if (!function_exists('lang_i18n')) {
$path = strtolower(request()->controller() . '/' . request()->action());
$lang_key = "{$path}.{$name}";
if (!Lang::has($lang_key, $lang)) {
return $name;
return Lang::get($name, $vars, $lang);
}
return Lang::get($lang_key, $vars, $lang);
}