From 945c3b39b4b9d0a2a079a1272476f47885b72641 Mon Sep 17 00:00:00 2001 From: Haze <709547807@qq.com> Date: Wed, 11 Mar 2026 23:17:46 +0800 Subject: [PATCH] feat(i18n): update chat localization strings to enhance user experience and clarity (#424) --- src/i18n/locales/en/chat.json | 11 ++++++----- src/i18n/locales/ja/chat.json | 11 ++++++----- src/i18n/locales/zh/chat.json | 11 ++++++----- src/pages/Chat/index.tsx | 18 +++++++++++------- 4 files changed, 29 insertions(+), 22 deletions(-) diff --git a/src/i18n/locales/en/chat.json b/src/i18n/locales/en/chat.json index f0dd04f82..a45d87d3f 100644 --- a/src/i18n/locales/en/chat.json +++ b/src/i18n/locales/en/chat.json @@ -3,11 +3,12 @@ "gatewayRequired": "The OpenClaw Gateway needs to be running to use chat. It will start automatically, or you can start it from Settings.", "welcome": { "title": "ClawX Chat", - "subtitle": "Your AI assistant is ready. Start a conversation below.", - "askQuestions": "Ask Questions", - "askQuestionsDesc": "Get answers on any topic", - "creativeTasks": "Creative Tasks", - "creativeTasksDesc": "Writing, brainstorming, ideas" + "subtitle": "What can I do for you?", + "askQuestions": "Handle Tasks", + "askQuestionsDesc": "Work on task-oriented requests", + "creativeTasks": "Continuous Execution", + "creativeTasksDesc": "Keep running through multi-step work", + "brainstorming": "Multi-Agent Parallel" }, "noLogs": "(No logs available yet)", "toolbar": { diff --git a/src/i18n/locales/ja/chat.json b/src/i18n/locales/ja/chat.json index 6c42e0f80..15840cdae 100644 --- a/src/i18n/locales/ja/chat.json +++ b/src/i18n/locales/ja/chat.json @@ -3,11 +3,12 @@ "gatewayRequired": "チャットを使用するには OpenClaw ゲートウェイが実行されている必要があります。自動的に起動するか、設定から起動できます。", "welcome": { "title": "ClawX チャット", - "subtitle": "AI アシスタントの準備ができました。下の入力欄から会話を始めましょう。", - "askQuestions": "質問する", - "askQuestionsDesc": "あらゆるトピックについて回答を得る", - "creativeTasks": "クリエイティブタスク", - "creativeTasksDesc": "ライティング、ブレスト、アイデア" + "subtitle": "何をお手伝いできますか?", + "askQuestions": "タスク処理", + "askQuestionsDesc": "タスク指向の依頼に対応します", + "creativeTasks": "継続実行", + "creativeTasksDesc": "複数ステップの作業を継続して進めます", + "brainstorming": "マルチエージェント並列" }, "noLogs": "(ログはまだありません)", "toolbar": { diff --git a/src/i18n/locales/zh/chat.json b/src/i18n/locales/zh/chat.json index 2a68e63cd..786a75ec5 100644 --- a/src/i18n/locales/zh/chat.json +++ b/src/i18n/locales/zh/chat.json @@ -3,11 +3,12 @@ "gatewayRequired": "OpenClaw 网关需要运行才能使用聊天。它将自动启动,或者您可以从设置中启动。", "welcome": { "title": "ClawX 聊天", - "subtitle": "您的 AI 助手已就绪。在下方开始对话。", - "askQuestions": "提问", - "askQuestionsDesc": "获取任何话题的答案", - "creativeTasks": "创意任务", - "creativeTasksDesc": "写作、头脑风暴、创意" + "subtitle": "我能为你做些什么?", + "askQuestions": "处理任务", + "askQuestionsDesc": "处理面向任务的请求", + "creativeTasks": "持续执行", + "creativeTasksDesc": "持续推进多步骤工作", + "brainstorming": "多智能体并行" }, "noLogs": "(暂无日志)", "toolbar": { diff --git a/src/pages/Chat/index.tsx b/src/pages/Chat/index.tsx index 11100c7f8..468368243 100644 --- a/src/pages/Chat/index.tsx +++ b/src/pages/Chat/index.tsx @@ -188,19 +188,23 @@ export function Chat() { // ── Welcome Screen ────────────────────────────────────────────── function WelcomeScreen() { + const { t } = useTranslation('chat'); + const quickActions = [ + { key: 'askQuestions', label: t('welcome.askQuestions') }, + { key: 'creativeTasks', label: t('welcome.creativeTasks') }, + { key: 'brainstorming', label: t('welcome.brainstorming') }, + ]; + return (
-

- Welcome +

+ {t('welcome.subtitle')}

-

- Your AI assistant is ready. Start a conversation below. -

- {['Ask Questions', 'Creative Tasks', 'Brainstorming'].map((label, i) => ( + {quickActions.map(({ key, label }) => (