mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2025-12-08 17:32:27 +08:00
fix: optional copywriting i18n
This commit is contained in:
@ -107,7 +107,7 @@ const Welcome: FC<IWelcomeProps> = ({
|
||||
)}
|
||||
{item.type === 'string' && (
|
||||
<input
|
||||
placeholder={`${item.name}${!item.required ? `(${t('appDebug.variableTable.optional')})` : ''}`}
|
||||
placeholder={`${item.name}${!item.required ? `(${t('app.variableTable.optional')})` : ''}`}
|
||||
value={inputs?.[item.key] || ''}
|
||||
onChange={(e) => { setInputs({ ...inputs, [item.key]: e.target.value }) }}
|
||||
className={'w-full flex-grow py-2 pl-3 pr-3 box-border rounded-lg bg-gray-50'}
|
||||
@ -117,7 +117,7 @@ const Welcome: FC<IWelcomeProps> = ({
|
||||
{item.type === 'paragraph' && (
|
||||
<textarea
|
||||
className="w-full h-[104px] flex-grow py-2 pl-3 pr-3 box-border rounded-lg bg-gray-50"
|
||||
placeholder={`${item.name}${!item.required ? `(${t('appDebug.variableTable.optional')})` : ''}`}
|
||||
placeholder={`${item.name}${!item.required ? `(${t('app.variableTable.optional')})` : ''}`}
|
||||
value={inputs?.[item.key] || ''}
|
||||
onChange={(e) => { setInputs({ ...inputs, [item.key]: e.target.value }) }}
|
||||
/>
|
||||
|
||||
@ -28,6 +28,9 @@ const translation = {
|
||||
waitForResponse:
|
||||
'Please wait for the response to the previous message to complete.',
|
||||
},
|
||||
variableTable: {
|
||||
optional: 'Optional',
|
||||
},
|
||||
}
|
||||
|
||||
export default translation
|
||||
|
||||
@ -23,6 +23,9 @@ const translation = {
|
||||
valueOfVarRequired: '变量值必填',
|
||||
waitForResponse: '请等待上条信息响应完成',
|
||||
},
|
||||
variableTable: {
|
||||
optional: '可选',
|
||||
},
|
||||
}
|
||||
|
||||
export default translation
|
||||
|
||||
Reference in New Issue
Block a user