Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/renderer/src/components/notebook/ProcessPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default function ProcessPanel({
size="icon"
className="w-8 h-8 shrink-0"
style={{ WebkitAppRegion: 'no-drag' } as React.CSSProperties}
title={isLeftCollapsed ? '展开知识库' : '折叠知识库'}
title={isLeftCollapsed ? t('expandKnowledgeBase') : t('collapseKnowledgeBase')}
>
{isLeftCollapsed ? (
<PanelLeftOpen className="w-4 h-4" />
Expand Down Expand Up @@ -267,7 +267,7 @@ export default function ProcessPanel({
size="icon"
className="w-8 h-8 shrink-0"
style={{ WebkitAppRegion: 'no-drag' } as React.CSSProperties}
title={isRightCollapsed ? '展开笔记' : '折叠笔记'}
title={isRightCollapsed ? t('expandCreativeSpace') : t('collapseCreativeSpace')}
>
{isRightCollapsed ? (
<PanelRightOpen className="w-4 h-4" />
Expand Down Expand Up @@ -320,7 +320,7 @@ export default function ProcessPanel({
<Button
onClick={handleStop}
disabled={!canStop}
title="停止生成"
title={t('stopGenerating', { ns: 'chat' })}
variant="destructive"
size="icon"
className="absolute right-2 bottom-3 w-8 h-8 rounded-full"
Expand Down
4 changes: 3 additions & 1 deletion src/renderer/src/components/notebook/note/NoteEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export default function NoteEditor({ content, onChange, onSave }: NoteEditorProp

if (!editor) {
return (
<div className="h-full flex items-center justify-center text-muted-foreground">加载中...</div>
<div className="h-full flex items-center justify-center text-muted-foreground">
{t('loading', { ns: 'common' })}
</div>
)
}

Expand Down
6 changes: 4 additions & 2 deletions src/renderer/src/components/pages/MindMapPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ export default function MindMapPage() {
<button
onClick={toggleDirection}
className="p-1.5 rounded-md hover:bg-surface-hover transition-colors"
title={direction === 'LR' ? '切换为垂直布局' : '切换为横向布局'}
title={
direction === 'LR' ? t('switchToVerticalLayout') : t('switchToHorizontalLayout')
}
>
{direction === 'LR' ? (
<ArrowUpDown className="w-4 h-4 text-muted-foreground" />
Expand All @@ -219,7 +221,7 @@ export default function MindMapPage() {
<button
onClick={handleExport}
className="p-1.5 rounded-md hover:bg-surface-hover transition-colors"
title="导出为图片"
title={t('exportAsImage')}
>
<Download className="w-4 h-4 text-muted-foreground" />
</button>
Expand Down
3 changes: 3 additions & 0 deletions src/renderer/src/locales/en-US/notebook.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
"delete": "Delete",
"startEditing": "Type your note here...",
"mindMap": "Mind Map",
"switchToVerticalLayout": "Switch to vertical layout",
"switchToHorizontalLayout": "Switch to horizontal layout",
"exportAsImage": "Export as image",
"generateMindMap": "Generate Mind Map",
"generateQuiz": "Generate Quiz",
"generateAnki": "Generate Anki Cards",
Expand Down
4 changes: 4 additions & 0 deletions src/renderer/src/locales/en-US/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
"inputMessage": "Type a message... (Shift+Enter for new line)",
"knowledgeBase": "Knowledge Base",
"knowledgeBaseDesc": "Add documents to provide context for conversations",
"collapseKnowledgeBase": "Collapse knowledge base",
"expandKnowledgeBase": "Expand knowledge base",
"collapseCreativeSpace": "Collapse creative space",
"expandCreativeSpace": "Expand creative space",
"addSource": "Add Source",
"uploadFile": "Upload File",
"pasteText": "Paste Text",
Expand Down
1 change: 1 addition & 0 deletions src/renderer/src/locales/zh-CN/chat.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"thinking": "正在思考",
"stopGenerating": "停止生成",
"thinkingInProgress": "正在思考中...",
"thinkingProcess": "思考过程",
"thinkingShort": "思考中",
Expand Down
3 changes: 3 additions & 0 deletions src/renderer/src/locales/zh-CN/notebook.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"leave": "离开",
"startEditing": "输入笔记内容...",
"mindMap": "思维导图",
"switchToVerticalLayout": "切换为垂直布局",
"switchToHorizontalLayout": "切换为横向布局",
"exportAsImage": "导出为图片",
"generateMindMap": "生成思维导图",
"generateQuiz": "生成题目",
"generateAnki": "生成Anki卡片",
Expand Down
4 changes: 4 additions & 0 deletions src/renderer/src/locales/zh-CN/ui.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"inputMessage": "输入消息... (Shift+Enter 换行)",
"knowledgeBase": "知识库",
"knowledgeBaseDesc": "添加文档为对话提供背景知识",
"collapseKnowledgeBase": "折叠知识库",
"expandKnowledgeBase": "展开知识库",
"collapseCreativeSpace": "折叠创造空间",
"expandCreativeSpace": "展开创造空间",
"addSource": "添加来源",
"uploadFile": "上传文件",
"pasteText": "粘贴文本",
Expand Down
Loading