fix: 修复多语言获取

This commit is contained in:
Ying
2022-08-24 12:04:09 +08:00
parent 021edabb72
commit 3f310751e1
4 changed files with 7 additions and 3 deletions

View File

@@ -558,8 +558,8 @@ if (!function_exists('__')) {
*/
function __($str, $parameters = [], $domain = null, $locale = null)
{
if (is_numeric($str)
|| getenv('LANG_DEFAULT_LANG') === 'zh-CN') {
$lang = session('lang', 'zh-CN');
if (is_numeric($str) || strstr($lang, 'zh-CN')) {
return $str;
}