fix: optional copywriting i18n

This commit is contained in:
Joel
2024-07-31 11:54:30 +08:00
parent 884e72b4f0
commit fcd6a0215d
3 changed files with 8 additions and 2 deletions

View File

@ -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 }) }}
/>

View File

@ -28,6 +28,9 @@ const translation = {
waitForResponse:
'Please wait for the response to the previous message to complete.',
},
variableTable: {
optional: 'Optional',
},
}
export default translation

View File

@ -23,6 +23,9 @@ const translation = {
valueOfVarRequired: '变量值必填',
waitForResponse: '请等待上条信息响应完成',
},
variableTable: {
optional: '可选',
},
}
export default translation