refactor: form data template locale improve (#4148)

This commit is contained in:
katherinehhh 2024-04-24 14:31:46 +08:00 committed by GitHub
parent f8067c6550
commit 5c7004ff43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 7 deletions

View File

@ -802,7 +802,7 @@
"Template Data": "模板数据",
"Data fields": "数据字段",
"Add template": "添加模板",
"Display data template selector": "显示数据模板选择框",
"Enable form data template": "启用表单数据模板",
"Form data templates": "表单数据模板",
"Data template": "数据模板",
"No configuration available.": "无可配置项。",
@ -842,7 +842,9 @@
"Failed to load plugin": "插件加载失败",
"Allow add new, update and delete actions": "允许增删改操作",
"Date display format": "日期显示格式",
"Assign data scope for the template": "为模板指定数据范围",
"Filter out a single piece or a group of records as a template": "筛选出一条或一组数据,作为模板",
"Title field(The title field is used to identify the template record)": "标题字段(用于识别模板数据)",
"Template fields(The selected fields will automatically populate the form)": "模板字段(用于自动填充到表单)",
"Table selected records": "表格中选中的记录",
"Tag": "标签",
"Tag color field": "标签颜色字段",
@ -920,7 +922,7 @@
"Separator": "分隔符",
"Prefix": "前缀",
"Suffix": "后缀",
"Filter target key":"筛选目标键",
"Filter target key": "筛选目标键",
"Filter data based on the specific field, with the requirement that the field value must be unique.": "根据特定的字段筛选数据,字段值必须具备唯一性。",
"Multiply by": "乘以",
"Divide by": "除以",

View File

@ -143,7 +143,7 @@ export const FormDataTemplates = withDynamicSchemaProps(
},
dataScope: {
type: 'object',
title: '{{ t("Assign data scope for the template") }}',
title: '{{ t("Filter out a single piece or a group of records as a template") }}',
'x-decorator': 'FormItem',
'x-component': 'Filter',
'x-component-props': {
@ -172,7 +172,7 @@ export const FormDataTemplates = withDynamicSchemaProps(
titleField: {
type: 'string',
'x-decorator': 'FormItem',
title: '{{ t("Title field") }}',
title: '{{ t("Title field(The title field is used to identify the template record)") }}',
'x-component': 'Select',
required: true,
'x-reactions': '{{useTitleFieldDataSource}}',
@ -189,7 +189,7 @@ export const FormDataTemplates = withDynamicSchemaProps(
},
fields: {
type: 'array',
title: '{{ t("Data fields") }}',
title: '{{ t("Template fields(The selected fields will automatically populate the form)") }}',
required: true,
description: t('Only the selected fields will be used as the initialization data for the form'),
'x-decorator': 'FormItem',
@ -250,7 +250,7 @@ export const FormDataTemplates = withDynamicSchemaProps(
},
display: {
type: 'boolean',
'x-content': '{{ t("Display data template selector") }}',
'x-content': '{{ t("Enable form data template") }}',
default: activeData?.display !== false,
'x-decorator': 'FormItem',
'x-component': 'Checkbox',