菜单和部分接口返回对语言进行适配

This commit is contained in:
2026-04-20 10:27:01 +08:00
parent 24aab111b5
commit 025cce3e3e
5 changed files with 209 additions and 24 deletions

View File

@@ -0,0 +1,103 @@
<?php
declare(strict_types=1);
/**
* 后台 admin_rule.title 中文(及少数英文占位)→ 英文展示。
* 新增菜单时若标题为中文,请在此补充映射,或在库中直接使用英文标题。
*/
return [
// 通用按钮
'查看' => 'View',
'添加' => 'Add',
'编辑' => 'Edit',
'删除' => 'Delete',
'保存' => 'Save',
'快速排序' => 'Quick sort',
'还原' => 'Restore',
'回滚' => 'Rollback',
'查看详情' => 'View details',
'生成' => 'Generate',
'安装' => 'Install',
'调整状态' => 'Change state',
'卸载' => 'Uninstall',
'更新' => 'Update',
'审核通过' => 'Approve',
'审核驳回' => 'Reject',
// 安装包默认菜单
'控制台' => 'Dashboard',
'权限管理' => 'Permission management',
'角色组管理' => 'Role groups',
'管理员管理' => 'Administrators',
'菜单规则管理' => 'Menu rules',
'管理员日志管理' => 'Admin logs',
'常规管理' => 'Routine',
'系统配置' => 'System configuration',
'附件管理' => 'Attachments',
'个人资料' => 'Profile',
'数据安全管理' => 'Data security',
'数据回收站' => 'Data recycle bin',
'敏感数据修改记录' => 'Sensitive data change log',
'数据回收规则管理' => 'Data recycle rules',
'敏感字段规则管理' => 'Sensitive field rules',
'模块市场' => 'Module store',
'CRUD代码生成' => 'CRUD generator',
// 会员端 user_rule若出现在后台接口中
'我的账户' => 'My account',
'账户概览' => 'Overview',
'积分记录' => 'Score log',
'余额记录' => 'Balance log',
// 业务扩展菜单
'用户管理' => 'User management',
'用户列表' => 'User list',
'订单管理' => 'Order management',
'游戏管理' => 'Game management',
'配置管理' => 'Configuration',
'游戏配置' => 'Game configuration',
'常规配置' => 'General settings',
'记录管理' => 'Records',
'游戏对局' => 'Game rounds',
'游戏对局记录' => 'Game records',
'游戏实时对局' => 'Game live',
'压注订单' => 'Bet orders',
'充值订单' => 'Deposit orders',
'提现订单' => 'Withdraw orders',
'用户钱包流水' => 'User wallet transactions',
'36字花字典' => '36 Zihua dictionary',
'代理与结算' => 'Agents & settlement',
'代理结算周期' => 'Agent settlement periods',
'代理佣金记录' => 'Agent commission records',
'运营' => 'Operations',
'运营公告' => 'Operation notices',
'用户阅读记录' => 'User read log',
'充值档位' => 'Deposit tiers',
'连胜奖励' => 'Win streak rewards',
'连胜降低档位' => 'Streak reduction tiers',
'钱包加减点' => 'Wallet adjust',
'测试' => 'Test',
'推送-对局公共频道' => 'Push: public game period',
'推送-公告广播频道' => 'Push: operation notices',
'推送-用户私有频道' => 'Push: user private',
'渠道管理' => 'Channel management',
// 演示/运营公告标题(若入库为菜单展示)
'系统维护通知(演示)' => 'Maintenance notice (demo)',
'提现风控升级提醒(演示)' => 'Withdraw risk notice (demo)',
'活动奖励发放说明(演示)' => 'Promotion notice (demo)',
// 部分按钮 title 为动作名game/live 等迁移写入)
'index' => 'View',
'snapshot' => 'Snapshot',
'pushConfig' => 'Push config',
'recordSettings' => 'Period settings',
'createNextManual' => 'Create next period manually',
'periodSettings' => 'Period settings',
'manualSettle' => 'Manual settle',
// 其它中文按钮文案
'期号开关' => 'Period toggle',
'手动创建下一期' => 'Create next period manually',
];

View File

@@ -0,0 +1,24 @@
<?php
declare(strict_types=1);
return [
'No active game in progress' => 'No active game in progress',
'Current game status does not allow calculation' => 'Current game status does not allow calculation',
'Betting period has not ended; calculation is not available yet' => 'Betting period has not ended; calculation is not available yet',
'Manual draw number is out of the allowed range' => 'Manual draw number is out of the allowed range',
'Calculation completed' => 'Calculation completed',
'Draw number is out of the allowed range' => 'Draw number is out of the allowed range',
'Current game status does not allow scheduling the draw' => 'Current game status does not allow scheduling the draw',
'Betting has not ended; cannot schedule the draw' => 'Betting has not ended; cannot schedule the draw',
'This period has ended; please refresh the page' => 'This period has ended; please refresh the page',
'Draw number scheduled; it will be used when the countdown ends' => 'Draw number scheduled; it will be used when the countdown ends',
'Current game status does not allow drawing' => 'Current game status does not allow drawing',
'Betting period has not ended; drawing is not available yet' => 'Betting period has not ended; drawing is not available yet',
'Period countdown has not ended; cannot draw yet' => 'Period countdown has not ended; cannot draw yet',
'Draw completed; paying out' => 'Draw completed; paying out',
'Game live: settlement error' => 'Game live: settlement error',
'Calculation failed' => 'Calculation failed',
'Please enter the draw number' => 'Please enter the draw number',
'Schedule failed' => 'Schedule failed',
];