From d82ac30b93e03afc3e2df4d29527cc5ec3dedc43 Mon Sep 17 00:00:00 2001 From: MT-Mint <798521692@qq.com> Date: Mon, 20 Apr 2026 10:24:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20placeholder=E7=9A=84=E4=B8=8D=E5=90=8C?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/workspace/input-box.tsx | 6 +++++- frontend/src/core/i18n/locales/en-US.ts | 3 +++ frontend/src/core/i18n/locales/types.ts | 2 ++ frontend/src/core/i18n/locales/zh-CN.ts | 4 +++- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/workspace/input-box.tsx b/frontend/src/components/workspace/input-box.tsx index 8dff20fc..0ef33e5b 100644 --- a/frontend/src/components/workspace/input-box.tsx +++ b/frontend/src/components/workspace/input-box.tsx @@ -659,7 +659,11 @@ export function InputBox({ !effectiveIsFocused && "h-[80px] py-0 leading-20", )} disabled={isInputDisabled} - placeholder={t.inputBox.placeholder} + placeholder={ + showWelcomeStyle + ? t.inputBox.welcomePlaceholder + : t.inputBox.chatPlaceholder + } autoFocus={autoFocus} defaultValue={initialValue} onFocus={() => setIsFocused(true)} diff --git a/frontend/src/core/i18n/locales/en-US.ts b/frontend/src/core/i18n/locales/en-US.ts index 0e756541..f4ef480f 100644 --- a/frontend/src/core/i18n/locales/en-US.ts +++ b/frontend/src/core/i18n/locales/en-US.ts @@ -77,6 +77,9 @@ export const enUS: Translations = { // Input Box inputBox: { placeholder: "How can I assist you today?", + welcomePlaceholder: + "Start chatting directly, or describe your task and pick a skill for professional execution.", + chatPlaceholder: "Type “@” to reference files.", createSkillPrompt: "We're going to build a new skill step by step with `skill-creator`. To start, what do you want this skill to do?", sendMessagePrice: diff --git a/frontend/src/core/i18n/locales/types.ts b/frontend/src/core/i18n/locales/types.ts index b9e79878..654f0ee6 100644 --- a/frontend/src/core/i18n/locales/types.ts +++ b/frontend/src/core/i18n/locales/types.ts @@ -70,6 +70,8 @@ export interface Translations { inputBox: { sendMessagePrice: string; placeholder: string; + welcomePlaceholder: string; + chatPlaceholder: string; createSkillPrompt: string; addAttachments: string; history: string; diff --git a/frontend/src/core/i18n/locales/zh-CN.ts b/frontend/src/core/i18n/locales/zh-CN.ts index f215c790..808d2a31 100644 --- a/frontend/src/core/i18n/locales/zh-CN.ts +++ b/frontend/src/core/i18n/locales/zh-CN.ts @@ -78,7 +78,9 @@ export const zhCN: Translations = { // Input Box inputBox: { - placeholder: "可直接对话; 或输入需求并选择skill,完成专业任务;“@”可引用文件", + placeholder: "可直接对话; 或输入需求并选择skill,完成专业任务;", + welcomePlaceholder: "可直接对话; 或输入需求并选择skill,完成专业任务;", + chatPlaceholder: "“@”可引用文件。", createSkillPrompt: "我们一起用 skill-creator 技能来创建一个技能吧。先问问我希望这个技能能做什么。", sendMessagePrice: