From 63d30953ee1dddd5420f22c93a049126d718041d Mon Sep 17 00:00:00 2001 From: yyhhyyyyyy Date: Sun, 8 Mar 2026 21:28:26 +0800 Subject: [PATCH 1/2] fix(i18n): align agent ui copy and keys --- src/renderer/src/components/NewThreadMock.vue | 11 +++++--- src/renderer/src/components/WindowSideBar.vue | 25 +++++++++++++------ .../src/components/chat/ChatInputBox.vue | 9 +++++-- .../src/components/chat/ChatStatusBar.vue | 10 +++++--- .../src/components/mock/MockInputBox.vue | 5 +++- .../src/components/mock/MockStatusBar.vue | 12 ++++++--- src/renderer/src/i18n/da-DK/chat.json | 18 ++++++++++++- src/renderer/src/i18n/da-DK/common.json | 12 +++++++++ src/renderer/src/i18n/da-DK/index.ts | 2 -- src/renderer/src/i18n/da-DK/newThread.json | 4 --- src/renderer/src/i18n/en-US/chat.json | 18 ++++++++++++- src/renderer/src/i18n/en-US/common.json | 12 +++++++++ src/renderer/src/i18n/en-US/index.ts | 2 -- src/renderer/src/i18n/en-US/newThread.json | 4 --- src/renderer/src/i18n/fa-IR/chat.json | 18 ++++++++++++- src/renderer/src/i18n/fa-IR/common.json | 12 +++++++++ src/renderer/src/i18n/fa-IR/index.ts | 2 -- src/renderer/src/i18n/fa-IR/newThread.json | 4 --- src/renderer/src/i18n/fr-FR/chat.json | 18 ++++++++++++- src/renderer/src/i18n/fr-FR/common.json | 12 +++++++++ src/renderer/src/i18n/fr-FR/index.ts | 2 -- src/renderer/src/i18n/fr-FR/newThread.json | 4 --- src/renderer/src/i18n/he-IL/chat.json | 18 ++++++++++++- src/renderer/src/i18n/he-IL/common.json | 12 +++++++++ src/renderer/src/i18n/he-IL/index.ts | 2 -- src/renderer/src/i18n/he-IL/newThread.json | 4 --- src/renderer/src/i18n/ja-JP/chat.json | 18 ++++++++++++- src/renderer/src/i18n/ja-JP/common.json | 12 +++++++++ src/renderer/src/i18n/ja-JP/index.ts | 2 -- src/renderer/src/i18n/ja-JP/newThread.json | 4 --- src/renderer/src/i18n/ko-KR/chat.json | 18 ++++++++++++- src/renderer/src/i18n/ko-KR/common.json | 12 +++++++++ src/renderer/src/i18n/ko-KR/index.ts | 2 -- src/renderer/src/i18n/ko-KR/newThread.json | 4 --- src/renderer/src/i18n/pt-BR/chat.json | 18 ++++++++++++- src/renderer/src/i18n/pt-BR/common.json | 12 +++++++++ src/renderer/src/i18n/pt-BR/index.ts | 2 -- src/renderer/src/i18n/pt-BR/newThread.json | 4 --- src/renderer/src/i18n/ru-RU/chat.json | 18 ++++++++++++- src/renderer/src/i18n/ru-RU/common.json | 12 +++++++++ src/renderer/src/i18n/ru-RU/index.ts | 2 -- src/renderer/src/i18n/ru-RU/newThread.json | 4 --- src/renderer/src/i18n/zh-CN/chat.json | 18 ++++++++++++- src/renderer/src/i18n/zh-CN/common.json | 12 +++++++++ src/renderer/src/i18n/zh-CN/index.ts | 2 -- src/renderer/src/i18n/zh-CN/newThread.json | 4 --- src/renderer/src/i18n/zh-HK/chat.json | 18 ++++++++++++- src/renderer/src/i18n/zh-HK/common.json | 12 +++++++++ src/renderer/src/i18n/zh-HK/index.ts | 2 -- src/renderer/src/i18n/zh-HK/newThread.json | 4 --- src/renderer/src/i18n/zh-TW/chat.json | 18 ++++++++++++- src/renderer/src/i18n/zh-TW/common.json | 12 +++++++++ src/renderer/src/i18n/zh-TW/index.ts | 2 -- src/renderer/src/i18n/zh-TW/newThread.json | 4 --- src/renderer/src/pages/ChatPage.vue | 4 ++- src/renderer/src/pages/NewThreadPage.vue | 15 ++++++++--- src/renderer/src/stores/ui/agent.ts | 2 -- src/renderer/src/stores/ui/project.ts | 2 -- src/renderer/src/stores/ui/session.ts | 25 +++++++++++-------- .../renderer/components/WindowSideBar.test.ts | 6 +++-- test/renderer/stores/sessionStore.test.ts | 1 + 61 files changed, 432 insertions(+), 127 deletions(-) delete mode 100644 src/renderer/src/i18n/da-DK/newThread.json delete mode 100644 src/renderer/src/i18n/en-US/newThread.json delete mode 100644 src/renderer/src/i18n/fa-IR/newThread.json delete mode 100644 src/renderer/src/i18n/fr-FR/newThread.json delete mode 100644 src/renderer/src/i18n/he-IL/newThread.json delete mode 100644 src/renderer/src/i18n/ja-JP/newThread.json delete mode 100644 src/renderer/src/i18n/ko-KR/newThread.json delete mode 100644 src/renderer/src/i18n/pt-BR/newThread.json delete mode 100644 src/renderer/src/i18n/ru-RU/newThread.json delete mode 100644 src/renderer/src/i18n/zh-CN/newThread.json delete mode 100644 src/renderer/src/i18n/zh-HK/newThread.json delete mode 100644 src/renderer/src/i18n/zh-TW/newThread.json diff --git a/src/renderer/src/components/NewThreadMock.vue b/src/renderer/src/components/NewThreadMock.vue index 6b6a112f7..55862f267 100644 --- a/src/renderer/src/components/NewThreadMock.vue +++ b/src/renderer/src/components/NewThreadMock.vue @@ -9,7 +9,9 @@ -

Build and explore

+

+ {{ t('chat.newThread.title') }} +

@@ -25,7 +27,7 @@ - Recent Projects + {{ t('common.project.recent') }} - Open folder... + {{ t('common.project.openFolder') }} @@ -62,6 +64,7 @@ diff --git a/src/renderer/src/components/mock/MockStatusBar.vue b/src/renderer/src/components/mock/MockStatusBar.vue index b032dfefc..017b0b70e 100644 --- a/src/renderer/src/components/mock/MockStatusBar.vue +++ b/src/renderer/src/components/mock/MockStatusBar.vue @@ -69,14 +69,18 @@ class="h-6 px-2 gap-1.5 text-xs text-muted-foreground hover:text-foreground backdrop-blur-lg" > - Default permissions + {{ t('chat.permissionMode.default') }} - Default permissions + {{ + t('chat.permissionMode.default') + }} Restricted - Full access + {{ + t('chat.permissionMode.fullAccess') + }} @@ -91,8 +95,10 @@ import { DropdownMenuTrigger } from '@shadcn/components/ui/dropdown-menu' import { Icon } from '@iconify/vue' +import { useI18n } from 'vue-i18n' import ModelIcon from '../icons/ModelIcon.vue' import { useThemeStore } from '@/stores/theme' const themeStore = useThemeStore() +const { t } = useI18n() diff --git a/src/renderer/src/i18n/da-DK/chat.json b/src/renderer/src/i18n/da-DK/chat.json index cc4dce7a7..3b36cd1d8 100644 --- a/src/renderer/src/i18n/da-DK/chat.json +++ b/src/renderer/src/i18n/da-DK/chat.json @@ -19,7 +19,7 @@ "historyPlaceholder": "(Udfyld med Tab)", "inputArea": "Indtastningsområde", "pasteFiles": "Understøtter kopiering og indsættelse af filer", - "placeholder": "Spørg om noget? Du kan referere til værktøjer, filer, ressourcer osv. ved at bruge {'@'}.", + "placeholder": "Ask DeepChat anything, @ to mention files, / for commands", "promptFilesAdded": "Prompt-filen er blevet tilføjet", "promptFilesAddedDesc": "{count} filer er blevet tilføjet successfully", "promptFilesError": "Filbehandlingsfejl", @@ -210,5 +210,21 @@ "compaction": { "compacting": "Komprimerer automatisk kontekst...", "compacted": "Konteksten blev automatisk komprimeret" + }, + "newThread": { + "title": "Build and explore" + }, + "permissionMode": { + "default": "Default permissions", + "fullAccess": "Full access" + }, + "sidebar": { + "allAgents": "All Agents", + "expandSidebar": "Expand sidebar", + "collapseSidebar": "Collapse sidebar", + "groupByDate": "Group by date", + "groupByProject": "Group by project", + "emptyTitle": "No conversations yet", + "emptyDescription": "Start a new chat to begin" } } diff --git a/src/renderer/src/i18n/da-DK/common.json b/src/renderer/src/i18n/da-DK/common.json index d53dbaf09..e83598652 100644 --- a/src/renderer/src/i18n/da-DK/common.json +++ b/src/renderer/src/i18n/da-DK/common.json @@ -99,5 +99,17 @@ }, "size": { "bytes": "{count} byte" + }, + "time": { + "today": "Today", + "yesterday": "Yesterday", + "lastWeek": "Last week", + "older": "Older" + }, + "project": { + "select": "Select project", + "none": "No project", + "recent": "Recent projects", + "openFolder": "Open folder..." } } diff --git a/src/renderer/src/i18n/da-DK/index.ts b/src/renderer/src/i18n/da-DK/index.ts index 92d0c4646..ad4fc3d5a 100644 --- a/src/renderer/src/i18n/da-DK/index.ts +++ b/src/renderer/src/i18n/da-DK/index.ts @@ -12,7 +12,6 @@ import artifacts from './artifacts.json' import sync from './sync.json' import toolCall from './toolCall.json' import components from './components.json' -import newThread from './newThread.json' import about from './about.json' import contextMenu from './contextMenu.json' import promptSetting from './promptSetting.json' @@ -48,7 +47,6 @@ export default { sync, toolCall, components, - newThread, about, contextMenu, promptSetting, diff --git a/src/renderer/src/i18n/da-DK/newThread.json b/src/renderer/src/i18n/da-DK/newThread.json deleted file mode 100644 index d71eb12d6..000000000 --- a/src/renderer/src/i18n/da-DK/newThread.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "greeting": "Hej med dig!", - "prompt": "Hvad tænker du på?" -} diff --git a/src/renderer/src/i18n/en-US/chat.json b/src/renderer/src/i18n/en-US/chat.json index eed69d43f..f5e42647a 100644 --- a/src/renderer/src/i18n/en-US/chat.json +++ b/src/renderer/src/i18n/en-US/chat.json @@ -1,6 +1,6 @@ { "input": { - "placeholder": "Ask something? You can quote tools, files, resources via {'@'}...", + "placeholder": "Ask DeepChat anything, @ to mention files, / for commands", "fileArea": "File Area", "inputArea": "Input Area", "functionSwitch": "Function Switch", @@ -210,5 +210,21 @@ "aborted": "Aborted" } } + }, + "newThread": { + "title": "Build and explore" + }, + "permissionMode": { + "default": "Default permissions", + "fullAccess": "Full access" + }, + "sidebar": { + "allAgents": "All Agents", + "expandSidebar": "Expand sidebar", + "collapseSidebar": "Collapse sidebar", + "groupByDate": "Group by date", + "groupByProject": "Group by project", + "emptyTitle": "No conversations yet", + "emptyDescription": "Start a new chat to begin" } } diff --git a/src/renderer/src/i18n/en-US/common.json b/src/renderer/src/i18n/en-US/common.json index ebd522fde..ed1612745 100644 --- a/src/renderer/src/i18n/en-US/common.json +++ b/src/renderer/src/i18n/en-US/common.json @@ -99,5 +99,17 @@ }, "size": { "bytes": "{count} bytes" + }, + "time": { + "today": "Today", + "yesterday": "Yesterday", + "lastWeek": "Last week", + "older": "Older" + }, + "project": { + "select": "Select project", + "none": "No project", + "recent": "Recent projects", + "openFolder": "Open folder..." } } diff --git a/src/renderer/src/i18n/en-US/index.ts b/src/renderer/src/i18n/en-US/index.ts index 9210a456d..e6102ac6f 100644 --- a/src/renderer/src/i18n/en-US/index.ts +++ b/src/renderer/src/i18n/en-US/index.ts @@ -12,7 +12,6 @@ import artifacts from './artifacts.json' import sync from './sync.json' import toolCall from './toolCall.json' import components from './components.json' -import newThread from './newThread.json' import about from './about.json' import contextMenu from './contextMenu.json' import promptSetting from './promptSetting.json' @@ -48,7 +47,6 @@ export default { sync, toolCall, components, - newThread, about, contextMenu, promptSetting, diff --git a/src/renderer/src/i18n/en-US/newThread.json b/src/renderer/src/i18n/en-US/newThread.json deleted file mode 100644 index 39cd6888c..000000000 --- a/src/renderer/src/i18n/en-US/newThread.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "greeting": "Hello there!", - "prompt": "What's on your mind?" -} diff --git a/src/renderer/src/i18n/fa-IR/chat.json b/src/renderer/src/i18n/fa-IR/chat.json index c460884e1..ad5742f8a 100644 --- a/src/renderer/src/i18n/fa-IR/chat.json +++ b/src/renderer/src/i18n/fa-IR/chat.json @@ -1,6 +1,6 @@ { "input": { - "placeholder": "چیزی بپرسید؟ می‌توانید با {'@'} به ابزارها، پرونده‌ها، منابع ارجاع دهید...", + "placeholder": "Ask DeepChat anything, @ to mention files, / for commands", "fileArea": "ناحیه پرونده", "inputArea": "ناحیه ورودی", "functionSwitch": "کلید کارکرد", @@ -210,5 +210,21 @@ "compaction": { "compacting": "در حال فشرده‌سازی خودکار زمینه...", "compacted": "زمینه به‌صورت خودکار فشرده شد" + }, + "newThread": { + "title": "Build and explore" + }, + "permissionMode": { + "default": "Default permissions", + "fullAccess": "Full access" + }, + "sidebar": { + "allAgents": "All Agents", + "expandSidebar": "Expand sidebar", + "collapseSidebar": "Collapse sidebar", + "groupByDate": "Group by date", + "groupByProject": "Group by project", + "emptyTitle": "No conversations yet", + "emptyDescription": "Start a new chat to begin" } } diff --git a/src/renderer/src/i18n/fa-IR/common.json b/src/renderer/src/i18n/fa-IR/common.json index dc7b06ffd..c7182cbb5 100644 --- a/src/renderer/src/i18n/fa-IR/common.json +++ b/src/renderer/src/i18n/fa-IR/common.json @@ -99,5 +99,17 @@ }, "size": { "bytes": "{count} بایت" + }, + "time": { + "today": "Today", + "yesterday": "Yesterday", + "lastWeek": "Last week", + "older": "Older" + }, + "project": { + "select": "Select project", + "none": "No project", + "recent": "Recent projects", + "openFolder": "Open folder..." } } diff --git a/src/renderer/src/i18n/fa-IR/index.ts b/src/renderer/src/i18n/fa-IR/index.ts index f39124789..ca4f9f7ed 100644 --- a/src/renderer/src/i18n/fa-IR/index.ts +++ b/src/renderer/src/i18n/fa-IR/index.ts @@ -10,7 +10,6 @@ import welcome from './welcome.json' import components from './components.json' import dialog from './dialog.json' import model from './model.json' -import newThread from './newThread.json' import routes from './routes.json' import artifacts from './artifacts.json' import chat from './chat.json' @@ -44,7 +43,6 @@ export default { components, dialog, model, - newThread, routes, artifacts, chat, diff --git a/src/renderer/src/i18n/fa-IR/newThread.json b/src/renderer/src/i18n/fa-IR/newThread.json deleted file mode 100644 index c9f0bedd3..000000000 --- a/src/renderer/src/i18n/fa-IR/newThread.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "greeting": "درود", - "prompt": "امروز میخواهید درباره چه چیزی بپرسید؟" -} diff --git a/src/renderer/src/i18n/fr-FR/chat.json b/src/renderer/src/i18n/fr-FR/chat.json index d9868939b..207733658 100644 --- a/src/renderer/src/i18n/fr-FR/chat.json +++ b/src/renderer/src/i18n/fr-FR/chat.json @@ -1,6 +1,6 @@ { "input": { - "placeholder": "Posez une question ? Vous pouvez citer des outils, des fichiers, des ressources via {'@'}...", + "placeholder": "Ask DeepChat anything, @ to mention files, / for commands", "fileArea": "Zone de fichiers", "inputArea": "Zone de saisie", "functionSwitch": "Commutateur de fonction", @@ -210,5 +210,21 @@ "compaction": { "compacting": "Compactage automatique du contexte...", "compacted": "Le contexte a été compacté automatiquement" + }, + "newThread": { + "title": "Build and explore" + }, + "permissionMode": { + "default": "Default permissions", + "fullAccess": "Full access" + }, + "sidebar": { + "allAgents": "All Agents", + "expandSidebar": "Expand sidebar", + "collapseSidebar": "Collapse sidebar", + "groupByDate": "Group by date", + "groupByProject": "Group by project", + "emptyTitle": "No conversations yet", + "emptyDescription": "Start a new chat to begin" } } diff --git a/src/renderer/src/i18n/fr-FR/common.json b/src/renderer/src/i18n/fr-FR/common.json index d501635d7..58733e8de 100644 --- a/src/renderer/src/i18n/fr-FR/common.json +++ b/src/renderer/src/i18n/fr-FR/common.json @@ -99,5 +99,17 @@ }, "size": { "bytes": "{count} octets" + }, + "time": { + "today": "Today", + "yesterday": "Yesterday", + "lastWeek": "Last week", + "older": "Older" + }, + "project": { + "select": "Select project", + "none": "No project", + "recent": "Recent projects", + "openFolder": "Open folder..." } } diff --git a/src/renderer/src/i18n/fr-FR/index.ts b/src/renderer/src/i18n/fr-FR/index.ts index 21f464d99..4cbe2d050 100644 --- a/src/renderer/src/i18n/fr-FR/index.ts +++ b/src/renderer/src/i18n/fr-FR/index.ts @@ -10,7 +10,6 @@ import welcome from './welcome.json' import components from './components.json' import dialog from './dialog.json' import model from './model.json' -import newThread from './newThread.json' import routes from './routes.json' import artifacts from './artifacts.json' import chat from './chat.json' @@ -45,7 +44,6 @@ export default { components, dialog, model, - newThread, routes, artifacts, chat, diff --git a/src/renderer/src/i18n/fr-FR/newThread.json b/src/renderer/src/i18n/fr-FR/newThread.json deleted file mode 100644 index 8e8049900..000000000 --- a/src/renderer/src/i18n/fr-FR/newThread.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "greeting": "Bonjour", - "prompt": "Que souhaitez-vous demander aujourd'hui ?" -} diff --git a/src/renderer/src/i18n/he-IL/chat.json b/src/renderer/src/i18n/he-IL/chat.json index ecdfb0817..31e081bbd 100644 --- a/src/renderer/src/i18n/he-IL/chat.json +++ b/src/renderer/src/i18n/he-IL/chat.json @@ -1,6 +1,6 @@ { "input": { - "placeholder": "שאל משהו? ניתן לצטט כלים, קבצים ומשאבים באמצעות {'@'}...", + "placeholder": "Ask DeepChat anything, @ to mention files, / for commands", "fileArea": "אזור קבצים", "inputArea": "אזור קלט", "functionSwitch": "מתג פונקציות", @@ -210,5 +210,21 @@ "compaction": { "compacting": "דחיסת ההקשר מתבצעת באופן אוטומטי...", "compacted": "ההקשר נדחס אוטומטית" + }, + "newThread": { + "title": "Build and explore" + }, + "permissionMode": { + "default": "Default permissions", + "fullAccess": "Full access" + }, + "sidebar": { + "allAgents": "All Agents", + "expandSidebar": "Expand sidebar", + "collapseSidebar": "Collapse sidebar", + "groupByDate": "Group by date", + "groupByProject": "Group by project", + "emptyTitle": "No conversations yet", + "emptyDescription": "Start a new chat to begin" } } diff --git a/src/renderer/src/i18n/he-IL/common.json b/src/renderer/src/i18n/he-IL/common.json index 7fef5cb11..b6779de8f 100644 --- a/src/renderer/src/i18n/he-IL/common.json +++ b/src/renderer/src/i18n/he-IL/common.json @@ -99,5 +99,17 @@ }, "size": { "bytes": "{count} בתים" + }, + "time": { + "today": "Today", + "yesterday": "Yesterday", + "lastWeek": "Last week", + "older": "Older" + }, + "project": { + "select": "Select project", + "none": "No project", + "recent": "Recent projects", + "openFolder": "Open folder..." } } diff --git a/src/renderer/src/i18n/he-IL/index.ts b/src/renderer/src/i18n/he-IL/index.ts index 0bbef06ad..64d3a9def 100644 --- a/src/renderer/src/i18n/he-IL/index.ts +++ b/src/renderer/src/i18n/he-IL/index.ts @@ -12,7 +12,6 @@ import artifacts from './artifacts.json' import sync from './sync.json' import toolCall from './toolCall.json' import components from './components.json' -import newThread from './newThread.json' import about from './about.json' import contextMenu from './contextMenu.json' import promptSetting from './promptSetting.json' @@ -48,7 +47,6 @@ export default { sync, toolCall, components, - newThread, about, contextMenu, promptSetting, diff --git a/src/renderer/src/i18n/he-IL/newThread.json b/src/renderer/src/i18n/he-IL/newThread.json deleted file mode 100644 index 0c5c81044..000000000 --- a/src/renderer/src/i18n/he-IL/newThread.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "greeting": "שלום!", - "prompt": "על מה תרצה לדבר?" -} diff --git a/src/renderer/src/i18n/ja-JP/chat.json b/src/renderer/src/i18n/ja-JP/chat.json index 6ff8ccdc9..2d94a154d 100644 --- a/src/renderer/src/i18n/ja-JP/chat.json +++ b/src/renderer/src/i18n/ja-JP/chat.json @@ -1,6 +1,6 @@ { "input": { - "placeholder": "何か質問は?{'@'}でツール、ファイル、リソースを引用できます...", + "placeholder": "Ask DeepChat anything, @ to mention files, / for commands", "fileArea": "ファイルエリア", "inputArea": "入力エリア", "functionSwitch": "機能スイッチ", @@ -210,5 +210,21 @@ "compaction": { "compacting": "コンテキストを自動圧縮しています...", "compacted": "コンテキストは自動圧縮されました" + }, + "newThread": { + "title": "Build and explore" + }, + "permissionMode": { + "default": "Default permissions", + "fullAccess": "Full access" + }, + "sidebar": { + "allAgents": "All Agents", + "expandSidebar": "Expand sidebar", + "collapseSidebar": "Collapse sidebar", + "groupByDate": "Group by date", + "groupByProject": "Group by project", + "emptyTitle": "No conversations yet", + "emptyDescription": "Start a new chat to begin" } } diff --git a/src/renderer/src/i18n/ja-JP/common.json b/src/renderer/src/i18n/ja-JP/common.json index f1e9c07d0..dc4154cc1 100644 --- a/src/renderer/src/i18n/ja-JP/common.json +++ b/src/renderer/src/i18n/ja-JP/common.json @@ -99,5 +99,17 @@ }, "size": { "bytes": "{count} バイト" + }, + "time": { + "today": "Today", + "yesterday": "Yesterday", + "lastWeek": "Last week", + "older": "Older" + }, + "project": { + "select": "Select project", + "none": "No project", + "recent": "Recent projects", + "openFolder": "Open folder..." } } diff --git a/src/renderer/src/i18n/ja-JP/index.ts b/src/renderer/src/i18n/ja-JP/index.ts index a6738c07a..29249223a 100644 --- a/src/renderer/src/i18n/ja-JP/index.ts +++ b/src/renderer/src/i18n/ja-JP/index.ts @@ -12,7 +12,6 @@ import artifacts from './artifacts.json' import sync from './sync.json' import toolCall from './toolCall.json' import components from './components.json' -import newThread from './newThread.json' import about from './about.json' import contextMenu from './contextMenu.json' import promptSetting from './promptSetting.json' @@ -46,7 +45,6 @@ export default { sync, toolCall, components, - newThread, about, contextMenu, promptSetting, diff --git a/src/renderer/src/i18n/ja-JP/newThread.json b/src/renderer/src/i18n/ja-JP/newThread.json deleted file mode 100644 index b357d3993..000000000 --- a/src/renderer/src/i18n/ja-JP/newThread.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "greeting": "こんにちは", - "prompt": "今日は何を聞きたいですか?" -} diff --git a/src/renderer/src/i18n/ko-KR/chat.json b/src/renderer/src/i18n/ko-KR/chat.json index f8b05b3d1..23d6d9994 100644 --- a/src/renderer/src/i18n/ko-KR/chat.json +++ b/src/renderer/src/i18n/ko-KR/chat.json @@ -1,6 +1,6 @@ { "input": { - "placeholder": "질문하세요. {'@'}를 통해 도구, 파일, 리소스를 인용할 수 있습니다...", + "placeholder": "Ask DeepChat anything, @ to mention files, / for commands", "fileArea": "파일 영역", "inputArea": "입력 영역", "functionSwitch": "기능 전환", @@ -210,5 +210,21 @@ "compaction": { "compacting": "컨텍스트를 자동 압축하는 중...", "compacted": "컨텍스트가 자동으로 압축되었습니다" + }, + "newThread": { + "title": "Build and explore" + }, + "permissionMode": { + "default": "Default permissions", + "fullAccess": "Full access" + }, + "sidebar": { + "allAgents": "All Agents", + "expandSidebar": "Expand sidebar", + "collapseSidebar": "Collapse sidebar", + "groupByDate": "Group by date", + "groupByProject": "Group by project", + "emptyTitle": "No conversations yet", + "emptyDescription": "Start a new chat to begin" } } diff --git a/src/renderer/src/i18n/ko-KR/common.json b/src/renderer/src/i18n/ko-KR/common.json index 8482710f9..9bc359a56 100644 --- a/src/renderer/src/i18n/ko-KR/common.json +++ b/src/renderer/src/i18n/ko-KR/common.json @@ -99,5 +99,17 @@ }, "size": { "bytes": "{count} 바이트" + }, + "time": { + "today": "Today", + "yesterday": "Yesterday", + "lastWeek": "Last week", + "older": "Older" + }, + "project": { + "select": "Select project", + "none": "No project", + "recent": "Recent projects", + "openFolder": "Open folder..." } } diff --git a/src/renderer/src/i18n/ko-KR/index.ts b/src/renderer/src/i18n/ko-KR/index.ts index c63cac55e..404c0ee75 100644 --- a/src/renderer/src/i18n/ko-KR/index.ts +++ b/src/renderer/src/i18n/ko-KR/index.ts @@ -12,7 +12,6 @@ import artifacts from './artifacts.json' import sync from './sync.json' import toolCall from './toolCall.json' import components from './components.json' -import newThread from './newThread.json' import about from './about.json' import contextMenu from './contextMenu.json' import promptSetting from './promptSetting.json' @@ -47,7 +46,6 @@ export default { sync, toolCall, components, - newThread, about, contextMenu, promptSetting, diff --git a/src/renderer/src/i18n/ko-KR/newThread.json b/src/renderer/src/i18n/ko-KR/newThread.json deleted file mode 100644 index adeee0bde..000000000 --- a/src/renderer/src/i18n/ko-KR/newThread.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "greeting": "안녕하세요", - "prompt": "오늘은 무엇을 물어보시겠습니까?" -} diff --git a/src/renderer/src/i18n/pt-BR/chat.json b/src/renderer/src/i18n/pt-BR/chat.json index 483cee8eb..6816dedb6 100644 --- a/src/renderer/src/i18n/pt-BR/chat.json +++ b/src/renderer/src/i18n/pt-BR/chat.json @@ -1,6 +1,6 @@ { "input": { - "placeholder": "Pergunte algo? Você pode citar ferramentas, arquivos, recursos usando {'@'}...", + "placeholder": "Ask DeepChat anything, @ to mention files, / for commands", "fileArea": "Área de Arquivos", "inputArea": "Área de Entrada", "functionSwitch": "Alternar Função", @@ -210,5 +210,21 @@ "compaction": { "compacting": "Compactando o contexto automaticamente...", "compacted": "O contexto foi compactado automaticamente" + }, + "newThread": { + "title": "Build and explore" + }, + "permissionMode": { + "default": "Default permissions", + "fullAccess": "Full access" + }, + "sidebar": { + "allAgents": "All Agents", + "expandSidebar": "Expand sidebar", + "collapseSidebar": "Collapse sidebar", + "groupByDate": "Group by date", + "groupByProject": "Group by project", + "emptyTitle": "No conversations yet", + "emptyDescription": "Start a new chat to begin" } } diff --git a/src/renderer/src/i18n/pt-BR/common.json b/src/renderer/src/i18n/pt-BR/common.json index 6f7f5f7b5..cfdd906ed 100644 --- a/src/renderer/src/i18n/pt-BR/common.json +++ b/src/renderer/src/i18n/pt-BR/common.json @@ -99,5 +99,17 @@ }, "size": { "bytes": "{count} bytes" + }, + "time": { + "today": "Today", + "yesterday": "Yesterday", + "lastWeek": "Last week", + "older": "Older" + }, + "project": { + "select": "Select project", + "none": "No project", + "recent": "Recent projects", + "openFolder": "Open folder..." } } diff --git a/src/renderer/src/i18n/pt-BR/index.ts b/src/renderer/src/i18n/pt-BR/index.ts index 805ce6a94..1d6b07423 100644 --- a/src/renderer/src/i18n/pt-BR/index.ts +++ b/src/renderer/src/i18n/pt-BR/index.ts @@ -12,7 +12,6 @@ import artifacts from './artifacts.json' import sync from './sync.json' import toolCall from './toolCall.json' import components from './components.json' -import newThread from './newThread.json' import about from './about.json' import contextMenu from './contextMenu.json' import promptSetting from './promptSetting.json' @@ -47,7 +46,6 @@ export default { sync, toolCall, components, - newThread, about, contextMenu, promptSetting, diff --git a/src/renderer/src/i18n/pt-BR/newThread.json b/src/renderer/src/i18n/pt-BR/newThread.json deleted file mode 100644 index 0a600da09..000000000 --- a/src/renderer/src/i18n/pt-BR/newThread.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "greeting": "Olá!", - "prompt": "Em que posso ajudar?" -} diff --git a/src/renderer/src/i18n/ru-RU/chat.json b/src/renderer/src/i18n/ru-RU/chat.json index 4d670099f..3e1af188a 100644 --- a/src/renderer/src/i18n/ru-RU/chat.json +++ b/src/renderer/src/i18n/ru-RU/chat.json @@ -1,6 +1,6 @@ { "input": { - "placeholder": "Задайте вопрос? Вы можете ссылаться на инструменты, файлы, ресурсы через {'@'}...", + "placeholder": "Ask DeepChat anything, @ to mention files, / for commands", "fileArea": "Область файлов", "inputArea": "Область ввода", "functionSwitch": "Переключатель функций", @@ -210,5 +210,21 @@ "compaction": { "compacting": "Контекст автоматически сжимается...", "compacted": "Контекст был автоматически сжат" + }, + "newThread": { + "title": "Build and explore" + }, + "permissionMode": { + "default": "Default permissions", + "fullAccess": "Full access" + }, + "sidebar": { + "allAgents": "All Agents", + "expandSidebar": "Expand sidebar", + "collapseSidebar": "Collapse sidebar", + "groupByDate": "Group by date", + "groupByProject": "Group by project", + "emptyTitle": "No conversations yet", + "emptyDescription": "Start a new chat to begin" } } diff --git a/src/renderer/src/i18n/ru-RU/common.json b/src/renderer/src/i18n/ru-RU/common.json index 772f1a532..c577192c0 100644 --- a/src/renderer/src/i18n/ru-RU/common.json +++ b/src/renderer/src/i18n/ru-RU/common.json @@ -99,5 +99,17 @@ }, "size": { "bytes": "{count} байт" + }, + "time": { + "today": "Today", + "yesterday": "Yesterday", + "lastWeek": "Last week", + "older": "Older" + }, + "project": { + "select": "Select project", + "none": "No project", + "recent": "Recent projects", + "openFolder": "Open folder..." } } diff --git a/src/renderer/src/i18n/ru-RU/index.ts b/src/renderer/src/i18n/ru-RU/index.ts index 46bf0e6b8..1241e68b2 100644 --- a/src/renderer/src/i18n/ru-RU/index.ts +++ b/src/renderer/src/i18n/ru-RU/index.ts @@ -12,7 +12,6 @@ import artifacts from './artifacts.json' import sync from './sync.json' import toolCall from './toolCall.json' import components from './components.json' -import newThread from './newThread.json' import about from './about.json' import promptSetting from './promptSetting.json' import plan from './plan.json' @@ -46,7 +45,6 @@ export default { sync, toolCall, components, - newThread, about, promptSetting, plan, diff --git a/src/renderer/src/i18n/ru-RU/newThread.json b/src/renderer/src/i18n/ru-RU/newThread.json deleted file mode 100644 index 09f3e093e..000000000 --- a/src/renderer/src/i18n/ru-RU/newThread.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "greeting": "Здравствуйте", - "prompt": "Что бы вы хотели спросить сегодня?" -} diff --git a/src/renderer/src/i18n/zh-CN/chat.json b/src/renderer/src/i18n/zh-CN/chat.json index b500ab907..df3e78f9f 100644 --- a/src/renderer/src/i18n/zh-CN/chat.json +++ b/src/renderer/src/i18n/zh-CN/chat.json @@ -1,6 +1,6 @@ { "input": { - "placeholder": "问点什么?可以通过{'@'}来引用工具、文件、资源...", + "placeholder": "向 DeepChat 发送消息,@ 可引用文件,/ 可使用命令", "fileArea": "文件区域", "inputArea": "输入区域", "functionSwitch": "功能开关", @@ -210,5 +210,21 @@ "aborted": "已中止" } } + }, + "newThread": { + "title": "构建与探索" + }, + "permissionMode": { + "default": "默认权限", + "fullAccess": "完全访问" + }, + "sidebar": { + "allAgents": "所有 Agents", + "expandSidebar": "展开侧边栏", + "collapseSidebar": "收起侧边栏", + "groupByDate": "按时间分组", + "groupByProject": "按项目分组", + "emptyTitle": "还没有会话", + "emptyDescription": "开始一个新会话吧" } } diff --git a/src/renderer/src/i18n/zh-CN/common.json b/src/renderer/src/i18n/zh-CN/common.json index f30a31af4..f76e86b71 100644 --- a/src/renderer/src/i18n/zh-CN/common.json +++ b/src/renderer/src/i18n/zh-CN/common.json @@ -99,5 +99,17 @@ }, "size": { "bytes": "{count} 字节" + }, + "time": { + "today": "今天", + "yesterday": "昨天", + "lastWeek": "最近一周", + "older": "更早" + }, + "project": { + "select": "选择项目", + "none": "未关联项目", + "recent": "最近项目", + "openFolder": "打开文件夹..." } } diff --git a/src/renderer/src/i18n/zh-CN/index.ts b/src/renderer/src/i18n/zh-CN/index.ts index 514dcc30f..a11c62de6 100644 --- a/src/renderer/src/i18n/zh-CN/index.ts +++ b/src/renderer/src/i18n/zh-CN/index.ts @@ -12,7 +12,6 @@ import artifacts from './artifacts.json' import sync from './sync.json' import toolCall from './toolCall.json' import components from './components.json' -import newThread from './newThread.json' import about from './about.json' import contextMenu from './contextMenu.json' import promptSetting from './promptSetting.json' @@ -49,7 +48,6 @@ export default { sync, toolCall, components, - newThread, about, contextMenu, promptSetting, diff --git a/src/renderer/src/i18n/zh-CN/newThread.json b/src/renderer/src/i18n/zh-CN/newThread.json deleted file mode 100644 index 3a89e1f86..000000000 --- a/src/renderer/src/i18n/zh-CN/newThread.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "greeting": "你好呀", - "prompt": "今天你想问点什么?" -} diff --git a/src/renderer/src/i18n/zh-HK/chat.json b/src/renderer/src/i18n/zh-HK/chat.json index 2d8076ab4..14bd44c5c 100644 --- a/src/renderer/src/i18n/zh-HK/chat.json +++ b/src/renderer/src/i18n/zh-HK/chat.json @@ -1,6 +1,6 @@ { "input": { - "placeholder": "問點什麼?可以通過{'@'}來引用工具、文件、資源...", + "placeholder": "向 DeepChat 發送訊息,@ 可引用檔案,/ 可使用指令", "fileArea": "文件區域", "inputArea": "輸入區域", "functionSwitch": "功能開關", @@ -210,5 +210,21 @@ "manage": "管理", "title": "技能" } + }, + "newThread": { + "title": "建構與探索" + }, + "permissionMode": { + "default": "預設權限", + "fullAccess": "完全存取" + }, + "sidebar": { + "allAgents": "所有 Agents", + "expandSidebar": "展開側邊欄", + "collapseSidebar": "收起側邊欄", + "groupByDate": "按時間分組", + "groupByProject": "按專案分組", + "emptyTitle": "還沒有對話", + "emptyDescription": "開始一個新對話吧" } } diff --git a/src/renderer/src/i18n/zh-HK/common.json b/src/renderer/src/i18n/zh-HK/common.json index 933145fa5..8f7fb40b8 100644 --- a/src/renderer/src/i18n/zh-HK/common.json +++ b/src/renderer/src/i18n/zh-HK/common.json @@ -99,5 +99,17 @@ }, "size": { "bytes": "{count} 位元組" + }, + "time": { + "today": "今天", + "yesterday": "昨天", + "lastWeek": "最近一週", + "older": "更早" + }, + "project": { + "select": "選擇專案", + "none": "未關聯專案", + "recent": "最近專案", + "openFolder": "開啟資料夾..." } } diff --git a/src/renderer/src/i18n/zh-HK/index.ts b/src/renderer/src/i18n/zh-HK/index.ts index 8617a95c4..0e42bf9d7 100644 --- a/src/renderer/src/i18n/zh-HK/index.ts +++ b/src/renderer/src/i18n/zh-HK/index.ts @@ -12,7 +12,6 @@ import artifacts from './artifacts.json' import sync from './sync.json' import toolCall from './toolCall.json' import components from './components.json' -import newThread from './newThread.json' import about from './about.json' import promptSetting from './promptSetting.json' import plan from './plan.json' @@ -47,7 +46,6 @@ export default { sync, toolCall, components, - newThread, about, promptSetting, plan, diff --git a/src/renderer/src/i18n/zh-HK/newThread.json b/src/renderer/src/i18n/zh-HK/newThread.json deleted file mode 100644 index 35fc824ad..000000000 --- a/src/renderer/src/i18n/zh-HK/newThread.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "greeting": "你好呀", - "prompt": "今天你想問點什麼?" -} diff --git a/src/renderer/src/i18n/zh-TW/chat.json b/src/renderer/src/i18n/zh-TW/chat.json index 27e7680d4..84561a3c1 100644 --- a/src/renderer/src/i18n/zh-TW/chat.json +++ b/src/renderer/src/i18n/zh-TW/chat.json @@ -1,6 +1,6 @@ { "input": { - "placeholder": "問點什麼?可以通過{'@'}來引用工具、文件、資源...", + "placeholder": "向 DeepChat 傳送訊息,@ 可引用檔案,/ 可使用指令", "fileArea": "檔案區域", "inputArea": "輸入區域", "functionSwitch": "功能切換", @@ -210,5 +210,21 @@ "manage": "管理", "title": "技能" } + }, + "newThread": { + "title": "建構與探索" + }, + "permissionMode": { + "default": "預設權限", + "fullAccess": "完全存取" + }, + "sidebar": { + "allAgents": "所有 Agents", + "expandSidebar": "展開側邊欄", + "collapseSidebar": "收起側邊欄", + "groupByDate": "依時間分組", + "groupByProject": "依專案分組", + "emptyTitle": "還沒有對話", + "emptyDescription": "開始新的對話吧" } } diff --git a/src/renderer/src/i18n/zh-TW/common.json b/src/renderer/src/i18n/zh-TW/common.json index 04e716bce..8e96e8e5c 100644 --- a/src/renderer/src/i18n/zh-TW/common.json +++ b/src/renderer/src/i18n/zh-TW/common.json @@ -99,5 +99,17 @@ }, "size": { "bytes": "{count} 位元組" + }, + "time": { + "today": "今天", + "yesterday": "昨天", + "lastWeek": "最近一週", + "older": "更早" + }, + "project": { + "select": "選擇專案", + "none": "未關聯專案", + "recent": "最近專案", + "openFolder": "開啟資料夾..." } } diff --git a/src/renderer/src/i18n/zh-TW/index.ts b/src/renderer/src/i18n/zh-TW/index.ts index b43849c22..05c9ff310 100644 --- a/src/renderer/src/i18n/zh-TW/index.ts +++ b/src/renderer/src/i18n/zh-TW/index.ts @@ -7,7 +7,6 @@ import sync from './sync.json' import thread from './thread.json' import mcp from './mcp.json' import model from './model.json' -import newThread from './newThread.json' import components from './components.json' import dialog from './dialog.json' import about from './about.json' @@ -41,7 +40,6 @@ export default { dialog, settings, welcome, - newThread, about, artifacts, sync, diff --git a/src/renderer/src/i18n/zh-TW/newThread.json b/src/renderer/src/i18n/zh-TW/newThread.json deleted file mode 100644 index d03aabc44..000000000 --- a/src/renderer/src/i18n/zh-TW/newThread.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "greeting": "您好", - "prompt": "今天您想問些什麼呢?" -} diff --git a/src/renderer/src/pages/ChatPage.vue b/src/renderer/src/pages/ChatPage.vue index ada614014..21a90193f 100644 --- a/src/renderer/src/pages/ChatPage.vue +++ b/src/renderer/src/pages/ChatPage.vue @@ -67,6 +67,7 @@