mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-02 18:41:35 +08:00
fix(i18n): replace hardcoded Chinese strings with translation keys in DeepLinkImportDialog
- Add missing i18n keys for prompt, MCP, and skill import dialogs - Replace hardcoded toast messages with t() function calls - Add translation keys: importPrompt, importMcp, importSkill, etc. - Ensure all user-facing text supports both zh and en locales
This commit is contained in:
@@ -749,6 +749,20 @@
|
||||
"deeplink": {
|
||||
"confirmImport": "Confirm Import Provider",
|
||||
"confirmImportDescription": "The following configuration will be imported from deep link into CC Switch",
|
||||
"importPrompt": "Import Prompt",
|
||||
"importPromptDescription": "Please confirm whether to import this system prompt",
|
||||
"importMcp": "Import MCP Servers",
|
||||
"importMcpDescription": "Please confirm whether to import these MCP Servers",
|
||||
"importSkill": "Add Skill Repository",
|
||||
"importSkillDescription": "Please confirm whether to add this Skill repository",
|
||||
"promptImportSuccess": "Prompt imported successfully",
|
||||
"promptImportSuccessDescription": "Imported prompt: {{name}}",
|
||||
"mcpImportSuccess": "MCP Servers imported successfully",
|
||||
"mcpImportSuccessDescription": "Successfully imported {{count}} server(s)",
|
||||
"mcpPartialSuccess": "Partial import success",
|
||||
"mcpPartialSuccessDescription": "Success: {{success}}, Failed: {{failed}}",
|
||||
"skillImportSuccess": "Skill repository added successfully",
|
||||
"skillImportSuccessDescription": "Added repository: {{repo}}",
|
||||
"app": "App Type",
|
||||
"providerName": "Provider Name",
|
||||
"homepage": "Homepage",
|
||||
|
||||
@@ -749,6 +749,20 @@
|
||||
"deeplink": {
|
||||
"confirmImport": "确认导入供应商配置",
|
||||
"confirmImportDescription": "以下配置将导入到 CC Switch",
|
||||
"importPrompt": "导入提示词",
|
||||
"importPromptDescription": "请确认是否导入此系统提示词",
|
||||
"importMcp": "导入 MCP Servers",
|
||||
"importMcpDescription": "请确认是否导入这些 MCP Servers",
|
||||
"importSkill": "添加 Skill 仓库",
|
||||
"importSkillDescription": "请确认是否添加此 Skill 仓库",
|
||||
"promptImportSuccess": "提示词导入成功",
|
||||
"promptImportSuccessDescription": "已导入提示词: {{name}}",
|
||||
"mcpImportSuccess": "MCP Servers 导入成功",
|
||||
"mcpImportSuccessDescription": "成功导入 {{count}} 个服务器",
|
||||
"mcpPartialSuccess": "部分导入成功",
|
||||
"mcpPartialSuccessDescription": "成功: {{success}}, 失败: {{failed}}",
|
||||
"skillImportSuccess": "Skill 仓库添加成功",
|
||||
"skillImportSuccessDescription": "已添加仓库: {{repo}}",
|
||||
"app": "应用类型",
|
||||
"providerName": "供应商名称",
|
||||
"homepage": "官网地址",
|
||||
|
||||
Reference in New Issue
Block a user