forked from NoFxAiOS/nofx
-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
area: frontendFrontend/Web UI changesFrontend/Web UI changesarea: ui/uxUser interface and experienceUser interface and experienceenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersi18nInternationalization / Multi-language supportInternationalization / Multi-language supportpriority: mediumMedium priorityMedium prioritysize: smallSmall effort (<1 hour)Small effort (<1 hour)
Description
📝 描述
PromptManagementPage 目前所有 UI 文字都是硬編碼的中文,缺少多語言支持。
🎯 目標
為 Prompts 管理頁面添加完整的 i18n 支持,與系統其他頁面保持一致。
📋 需要國際化的文字
頁面標題和描述
- ✅
promptsNav- 已完成(導航按鈕) - ❌ 提示词管理
- ❌ 管理您的 AI 交易策略提示词模板
操作按鈕
- ❌ + 新建模板
- ❌ 🔄 刷新
- ❌ 💾 保存
- ❌ 🗑️ 删除
模態框
- ❌ 新建模板
- ❌ 确认删除
- ❌ 取消
- ❌ 创建
提示訊息 (toast)
- ❌ 加载模板失败
- ❌ 获取模板内容失败
- ❌ 保存成功
- ❌ 创建成功
- ❌ 删除成功
其他文字
- ❌ 📁 模板列表
- ❌ 字符数 / 行数
- ❌ 请从上方选择一个模板
🔧 實現步驟
- 在
web/src/i18n/translations.ts添加所有需要的 key - 更新
PromptManagementPage.tsx使用useLanguage()hook - 將所有硬編碼文字替換為
t()函數調用 - 測試中英文切換
✅ 完成標準
- 所有 UI 文字都使用 i18n
- 中文和英文翻譯完整
- 語言切換即時生效
- 無硬編碼文字殘留
Metadata
Metadata
Assignees
Labels
area: frontendFrontend/Web UI changesFrontend/Web UI changesarea: ui/uxUser interface and experienceUser interface and experienceenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomersi18nInternationalization / Multi-language supportInternationalization / Multi-language supportpriority: mediumMedium priorityMedium prioritysize: smallSmall effort (<1 hour)Small effort (<1 hour)