mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-20 08:09:24 +08:00
fix: add upload i18n
This commit is contained in:
parent
288be3fbd8
commit
3904782647
@ -115,12 +115,12 @@ const FileUploadSetting: FC<Props> = ({
|
|||||||
</Field>
|
</Field>
|
||||||
)}
|
)}
|
||||||
<Field
|
<Field
|
||||||
title='Upload File Types'
|
title={t('appDebug.variableConfig.uploadFileTypes')}
|
||||||
className='mt-4'
|
className='mt-4'
|
||||||
>
|
>
|
||||||
<div className='grid grid-cols-3 gap-2'>
|
<div className='grid grid-cols-3 gap-2'>
|
||||||
<OptionCard
|
<OptionCard
|
||||||
title='Local Upload'
|
title={t('appDebug.variableConfig.localUpload')}
|
||||||
selected={allowed_file_upload_methods.length === 1 && allowed_file_upload_methods.includes(TransferMethod.local_file)}
|
selected={allowed_file_upload_methods.length === 1 && allowed_file_upload_methods.includes(TransferMethod.local_file)}
|
||||||
onSelect={handleUploadMethodChange(TransferMethod.local_file)}
|
onSelect={handleUploadMethodChange(TransferMethod.local_file)}
|
||||||
/>
|
/>
|
||||||
@ -130,7 +130,7 @@ const FileUploadSetting: FC<Props> = ({
|
|||||||
onSelect={handleUploadMethodChange(TransferMethod.remote_url)}
|
onSelect={handleUploadMethodChange(TransferMethod.remote_url)}
|
||||||
/>
|
/>
|
||||||
<OptionCard
|
<OptionCard
|
||||||
title="Both"
|
title={t('appDebug.variableConfig.both')}
|
||||||
selected={allowed_file_upload_methods.includes(TransferMethod.local_file) && allowed_file_upload_methods.includes(TransferMethod.remote_url)}
|
selected={allowed_file_upload_methods.includes(TransferMethod.local_file) && allowed_file_upload_methods.includes(TransferMethod.remote_url)}
|
||||||
onSelect={handleUploadMethodChange(TransferMethod.all)}
|
onSelect={handleUploadMethodChange(TransferMethod.all)}
|
||||||
/>
|
/>
|
||||||
|
@ -367,6 +367,9 @@ const translation = {
|
|||||||
createPlaceholder: '+ File extension, e.g .doc',
|
createPlaceholder: '+ File extension, e.g .doc',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'uploadFileTypes': 'Upload File Types',
|
||||||
|
'localUpload': 'Local Upload',
|
||||||
|
'both': 'Both',
|
||||||
'maxNumberOfUploads': 'Max number of uploads',
|
'maxNumberOfUploads': 'Max number of uploads',
|
||||||
'maxNumberTip': 'Max {{size}} each',
|
'maxNumberTip': 'Max {{size}} each',
|
||||||
'errorMsg': {
|
'errorMsg': {
|
||||||
|
@ -360,6 +360,11 @@ const translation = {
|
|||||||
createPlaceholder: '+ 文件扩展名,例如 .doc',
|
createPlaceholder: '+ 文件扩展名,例如 .doc',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'uploadFileTypes': '上传文件类型',
|
||||||
|
'localUpload': '本地上传',
|
||||||
|
'both': '两者',
|
||||||
|
'maxNumberOfUploads': '最大上传数',
|
||||||
|
'maxNumberTip': '最大上传文件大小为 {{size}}',
|
||||||
'content': '内容',
|
'content': '内容',
|
||||||
'errorMsg': {
|
'errorMsg': {
|
||||||
labelNameRequired: '显示名称必填',
|
labelNameRequired: '显示名称必填',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user