初始化提交

This commit is contained in:
maticarmy
2025-02-10 10:39:00 +08:00
commit 59cd2c19d1
491 changed files with 54545 additions and 0 deletions

39
config/lang.php Normal file
View File

@@ -0,0 +1,39 @@
<?php
// +----------------------------------------------------------------------
// | Static Plugin for ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2024 ThinkAdmin [ thinkadmin.top ]
// +----------------------------------------------------------------------
// | 官方网站: https://thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// | 免责声明 ( https://thinkadmin.top/disclaimer )
// +----------------------------------------------------------------------
// | gitee 代码仓库https://gitee.com/zoujingli/think-plugs-static
// | github 代码仓库https://github.com/zoujingli/think-plugs-static
// +----------------------------------------------------------------------
return [
// 默认语言
'default_lang' => 'zh-cn',
// 允许的语言列表
'allow_lang_list' => ['zh-cn'],
// 转义为对应语言包名称
'accept_language' => [
'en' => 'en-us',
'zh-hans-cn' => 'zh-cn',
],
// 多语言自动侦测变量名
'detect_var' => 'lang',
// 多语言 Cookie 变量
'cookie_var' => 'lang',
// 多语言 Header 变量
'header_var' => 'lang',
// 使用 Cookie 记录
'use_cookie' => true,
// 是否支持语言分组
'allow_group' => false,
// 扩展语言包
'extend_list' => [],
];