Browse Source

[Fix][UI Next][V1.0.0-Alpha]Fix udf function upload internationalization bug (#9110)

3.0.0/version-upgrade
Devosend 3 years ago committed by GitHub
parent
commit
0c5c9cabc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-ui-next/src/locales/modules/en_US.ts
  2. 4
      dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
  3. 11
      dolphinscheduler-ui-next/src/views/resource/udf/function/components/function-modal.tsx

4
dolphinscheduler-ui-next/src/locales/modules/en_US.ts

@ -285,7 +285,9 @@ const resource = {
'Please select UDF resources directory',
enter_instructions_tips: 'Please enter a instructions',
enter_name_tips: 'Please enter name',
enter_description_tips: 'Please enter description'
enter_description_tips: 'Please enter description',
upload: 'Upload',
upload_udf_resources: 'Upload UDF Resources'
},
task_group_option: {
manage: 'Task group manage',

4
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts

@ -283,7 +283,9 @@ const resource = {
enter_select_udf_resources_directory_tips: '请选择UDF资源目录',
enter_instructions_tips: '请输入使用说明',
enter_name_tips: '请输入名称',
enter_description_tips: '请输入描述'
enter_description_tips: '请输入描述',
upload: '上传',
upload_udf_resources: '上传UDF资源'
},
task_group_option: {
manage: '任务组管理',

11
dolphinscheduler-ui-next/src/views/resource/udf/function/components/function-modal.tsx

@ -215,20 +215,19 @@ export default defineComponent({
v-model={[this.uploadForm.name, 'value']}
placeholder={t('resource.function.enter_name_tips')}
/>
<NButton>
<NUpload
v-model={[this.uploadForm.file, 'value']}
customRequest={this.customRequest}
showFileList={false}
style={{ width: 'auto' }}
>
<NButton text>
<NButton>
{t('resource.function.upload')}
<NIcon>
<CloudUploadOutlined />
</NIcon>
</NButton>
</NUpload>
</NButton>
</NInputGroup>
</NFormItem>
<NFormItem
@ -245,7 +244,9 @@ export default defineComponent({
/>
</NFormItem>
<NFormItem label=' '>
<NButton onClick={this.handleUpload}>UDF资源</NButton>
<NButton onClick={this.handleUpload}>
{t('resource.function.upload_udf_resources')}
</NButton>
</NFormItem>
</NForm>
)}

Loading…
Cancel
Save