From dc4ce4aecaa5a3c4a0165b88ea0199809476d03c Mon Sep 17 00:00:00 2001 From: duanfuxiang Date: Thu, 1 May 2025 13:21:46 +0800 Subject: [PATCH] update prompts ui lang --- src/components/chat-view/CustomModeView.tsx | 42 ++++++++++----------- src/lang/locale/en.ts | 23 +++++++++-- src/lang/locale/zh-cn.ts | 24 ++++++++++++ 3 files changed, 65 insertions(+), 24 deletions(-) diff --git a/src/components/chat-view/CustomModeView.tsx b/src/components/chat-view/CustomModeView.tsx index 6f078ec..5f2a3dd 100644 --- a/src/components/chat-view/CustomModeView.tsx +++ b/src/components/chat-view/CustomModeView.tsx @@ -215,7 +215,7 @@ const CustomModeView = () => { {/* Mode name */}
-

Mode Name

+

{t('prompt.modeName')}

{!isBuiltinMode && !isNewMode && (
{ isBuiltinMode ? ( -

Built-in mode names cannot be modified

+

{t('prompt.builtinModeNameWarning')}

) : (

- Mode names must only contain letters, numbers, and hyphens + {t('prompt.modeNameRequirements')}

) } @@ -241,7 +241,7 @@ const CustomModeView = () => { setModeName(e.target.value) }} className="infio-custom-modes-input" - placeholder="Enter mode name..." + placeholder={t('prompt.modeNamePlaceholder')} disabled={isBuiltinMode} />
@@ -249,14 +249,14 @@ const CustomModeView = () => { {/* Role definition */}
-

Role Definition

+

{t('prompt.roleDefinition')}

{isBuiltinMode && ( )}
-

Set professional domain and response style

+

{t('prompt.roleDefinitionDescription')}