feat: 增强国际化支持与安全头配置
- 在 .env.example 中新增 i18next 相关配置项以支持多语言功能 - 在 next.config.ts 中添加安全头配置以支持 iframe 嵌入 - 更新 Providers 组件以引入 i18n 配置 - 在 PlayerAppShell 中集成 LanguageSwitcher 组件以实现语言切换功能 - 优化 HallWalletStrip 组件的网络状态管理逻辑 - 更新多个组件以支持国际化文本
This commit is contained in:
21
src/i18n/locales/zh/common.json
Normal file
21
src/i18n/locales/zh/common.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"language": {
|
||||
"en": "English",
|
||||
"ne": "नेपाली",
|
||||
"zh": "中文"
|
||||
},
|
||||
"languageShort": {
|
||||
"en": "EN",
|
||||
"ne": "NE",
|
||||
"zh": "ZH"
|
||||
},
|
||||
"status": {
|
||||
"done": "完成",
|
||||
"inProgress": "进行中",
|
||||
"pending": "待处理",
|
||||
"failed": "失败"
|
||||
},
|
||||
"errors": {
|
||||
"general": "通用"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user