feat: 增强国际化支持与安全头配置

- 在 .env.example 中新增 i18next 相关配置项以支持多语言功能
- 在 next.config.ts 中添加安全头配置以支持 iframe 嵌入
- 更新 Providers 组件以引入 i18n 配置
- 在 PlayerAppShell 中集成 LanguageSwitcher 组件以实现语言切换功能
- 优化 HallWalletStrip 组件的网络状态管理逻辑
- 更新多个组件以支持国际化文本
This commit is contained in:
2026-05-13 17:53:56 +08:00
parent c8f8f90515
commit 587a6ad66c
32 changed files with 2126 additions and 436 deletions

View File

@@ -0,0 +1,21 @@
{
"language": {
"en": "English",
"ne": "नेपाली",
"zh": "中文"
},
"languageShort": {
"en": "EN",
"ne": "NE",
"zh": "ZH"
},
"status": {
"done": "完成",
"inProgress": "进行中",
"pending": "待处理",
"failed": "失败"
},
"errors": {
"general": "通用"
}
}

View File

@@ -0,0 +1,65 @@
{
"header": {
"backgroundAlt": "页头背景"
},
"loading": {
"title": "正在进入彩票大厅",
"progress": "进度"
},
"steps": {
"token": {
"title": "校验登录凭证",
"description": "正在安全验证您的会话。"
},
"account": {
"title": "创建/同步账号",
"description": "正在为您设置账号。"
},
"hall": {
"title": "加载彩票大厅",
"description": "正在准备彩票大厅。"
}
},
"messages": {
"initializing": "正在初始化…",
"retrying": "正在重试…",
"verifying": "正在校验会话…",
"connectingHall": "正在连接彩票大厅…",
"ready": "就绪",
"retryProgress": "正在重试({{current}}/{{total}})…"
},
"failure": {
"title": "授权失败",
"subtitle": "无法完成授权,请重试。",
"detailsTitle": "失败详情",
"table": {
"no": "序号",
"check": "检查项",
"reason": "原因"
},
"reenter": "重新进入"
},
"success": {
"title": "授权成功!",
"subtitle": "您的会话已通过验证。",
"doneLabel": "完成",
"continue": "进入彩票大厅"
},
"footer": {
"secure": "安全 · 可信 · 授权访问"
},
"errors": {
"noToken": "未发现授权令牌",
"noTokenDetail": "请返回主站后重试。",
"authFailed": "授权失败",
"unknown": "未知错误",
"network": "网络异常",
"networkDetail": "请检查网络连接后重试。",
"maxRetries": "多次重试仍无法连接",
"maxRetriesDetail": "服务器可能暂时不可用。",
"tryLater": "请稍后再试",
"http401": "令牌无效或已过期",
"http403": "账号已被封禁",
"http404": "系统中未找到该账号"
}
}

View File

@@ -0,0 +1,5 @@
{
"brand": {
"title": "彩票"
}
}