feat: RTL/i18n, AI translate+undo, no-refresh saves, settings perf
- RTL: force dir=rtl on LabelFilter, NotesViewToggle, LabelManagementDialog - i18n: add missing keys (notifications, privacy, edit/preview, AI translate/undo) - Settings pages: convert to Server Components (general, appearance) + loading skeleton - AI menu: add Translate option (10 languages) + Undo AI button in toolbar - Fix: saveInline uses REST API instead of Server Action → eliminates all implicit refreshes in list mode - Fix: NotesTabsView notes sync effect preserves selected note on content changes - Fix: auto-tag suggestions now filter already-assigned labels - Fix: color change in card view uses local state (no refresh) - Fix: nav links use <Link> for prefetching (Settings, Admin) - Fix: suppress duplicate label suggestions already on note - Route: add /api/ai/translate endpoint
This commit is contained in:
@@ -997,5 +997,65 @@
|
||||
"collapse": "收起",
|
||||
"expand": "展开",
|
||||
"open": "打开"
|
||||
},
|
||||
"mcpSettings": {
|
||||
"title": "MCP 设置",
|
||||
"description": "管理 API 密钥并配置外部工具",
|
||||
"whatIsMcp": {
|
||||
"title": "什么是 MCP?",
|
||||
"description": "模型上下文协议(MCP)是一个开放协议,使 AI 模型能够与外部工具和数据源安全交互。通过 MCP,您可以将 Claude Code、Cursor 或 N8N 等工具连接到您的 Keep Notes 实例,以编程方式读取、创建和整理笔记。",
|
||||
"learnMore": "了解更多关于 MCP"
|
||||
},
|
||||
"serverStatus": {
|
||||
"title": "服务器状态",
|
||||
"running": "运行中",
|
||||
"stopped": "已停止",
|
||||
"mode": "模式",
|
||||
"url": "URL"
|
||||
},
|
||||
"apiKeys": {
|
||||
"title": "API 密钥",
|
||||
"description": "API 密钥允许外部工具通过 MCP 访问您的笔记。请保管好您的密钥。",
|
||||
"generate": "生成新密钥",
|
||||
"empty": "暂无 API 密钥。生成一个以开始使用。",
|
||||
"active": "有效",
|
||||
"revoked": "已撤销",
|
||||
"revoke": "撤销",
|
||||
"delete": "删除",
|
||||
"createdAt": "创建于",
|
||||
"lastUsed": "上次使用",
|
||||
"never": "从未使用",
|
||||
"confirmRevoke": "确定要撤销此密钥吗?使用该密钥的工具将失去访问权限。",
|
||||
"confirmDelete": "确定要永久删除此密钥吗?"
|
||||
},
|
||||
"createDialog": {
|
||||
"title": "生成 API 密钥",
|
||||
"description": "创建新的 API 密钥以将外部工具连接到您的笔记。",
|
||||
"nameLabel": "密钥名称",
|
||||
"namePlaceholder": "例如:Claude Code、Cursor、N8N",
|
||||
"generating": "生成中...",
|
||||
"generate": "生成",
|
||||
"successTitle": "API 密钥已生成",
|
||||
"successDescription": "请立即复制您的 API 密钥。之后将无法再次查看。",
|
||||
"copy": "复制",
|
||||
"copied": "已复制!",
|
||||
"done": "完成"
|
||||
},
|
||||
"configInstructions": {
|
||||
"title": "配置说明",
|
||||
"description": "使用您的 API 密钥配置这些工具。",
|
||||
"claudeCode": {
|
||||
"title": "Claude Code",
|
||||
"description": "将以下内容添加到您的 Claude Code MCP 配置文件中:"
|
||||
},
|
||||
"cursor": {
|
||||
"title": "Cursor",
|
||||
"description": "将以下内容添加到您的 Cursor MCP 设置中:"
|
||||
},
|
||||
"n8n": {
|
||||
"title": "N8N",
|
||||
"description": "在您的 N8N MCP 节点中使用以下凭据:"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user