From 765e35fc70c7a6465e9bb575c4b88d24bbedb0bf Mon Sep 17 00:00:00 2001 From: Henry Li Date: Fri, 6 Feb 2026 14:21:03 +0800 Subject: [PATCH] feat: update surprise-me functionality with localization support --- frontend/src/components/workspace/input-box.tsx | 4 ++-- frontend/src/core/i18n/locales/en-US.ts | 2 ++ frontend/src/core/i18n/locales/types.ts | 2 ++ frontend/src/core/i18n/locales/zh-CN.ts | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/workspace/input-box.tsx b/frontend/src/components/workspace/input-box.tsx index b48f759..4b5827f 100644 --- a/frontend/src/components/workspace/input-box.tsx +++ b/frontend/src/components/workspace/input-box.tsx @@ -392,9 +392,9 @@ function SuggestionList() { className="text-muted-foreground cursor-pointer rounded-full px-4 text-xs font-normal" variant="outline" size="sm" - onClick={() => handleSuggestionClick("Surprise me")} + onClick={() => handleSuggestionClick(t.inputBox.surpriseMePrompt)} > - Surprise + {t.inputBox.surpriseMe} {t.inputBox.suggestions.map((suggestion) => (