mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-08 04:48:10 +08:00
Replace header text "Payment Plugin for ThinkAdmin" with "ThinkAdmin Plugin for ThinkAdmin" across project files (configs, controllers, plugins, php-cs-fixer, etc.) to unify branding. Add a new composer script "rewrite-model" to regenerate models and run php-cs-fixer. Also apply a minor newline fix in .copilot-commit-message-instructions.md.
43 lines
1.5 KiB
PHP
43 lines
1.5 KiB
PHP
<?php
|
||
|
||
declare(strict_types=1);
|
||
/**
|
||
* +----------------------------------------------------------------------
|
||
* | ThinkAdmin Plugin for ThinkAdmin
|
||
* +----------------------------------------------------------------------
|
||
* | 版权所有 2014~2026 ThinkAdmin [ thinkadmin.top ]
|
||
* +----------------------------------------------------------------------
|
||
* | 官方网站: https://thinkadmin.top
|
||
* +----------------------------------------------------------------------
|
||
* | 开源协议 ( https://mit-license.org )
|
||
* | 免责声明 ( https://thinkadmin.top/disclaimer )
|
||
* | 会员特权 ( https://thinkadmin.top/vip-introduce )
|
||
* +----------------------------------------------------------------------
|
||
* | gitee 代码仓库:https://gitee.com/zoujingli/ThinkAdmin
|
||
* | github 代码仓库:https://github.com/zoujingli/ThinkAdmin
|
||
* +----------------------------------------------------------------------
|
||
*/
|
||
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' => [],
|
||
];
|