From c86b6f9a06c5bd4bab40d4fa4d6dbb4c34559672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E6=98=B6?= Date: Mon, 25 Jul 2022 10:40:27 +0800 Subject: [PATCH] feat: kanban add description (#659) * feat: kanban add description * fix(client): update translations Co-authored-by: chenos --- packages/core/client/src/locale/en_US.ts | 5 +++-- packages/core/client/src/locale/zh_CN.ts | 6 +++--- packages/core/client/src/schema-initializer/items/index.tsx | 5 +++-- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/core/client/src/locale/en_US.ts b/packages/core/client/src/locale/en_US.ts index 3b8781be1..66bbdfb31 100644 --- a/packages/core/client/src/locale/en_US.ts +++ b/packages/core/client/src/locale/en_US.ts @@ -54,7 +54,7 @@ export default { "Select data source": "Select data source", "Calendar": "Calendar", "Kanban": "Kanban", - "Select group field": "Select group field", + "Select grouping field": "Select grouping field", "Media": "Media", "Markdown": "Markdown", "Wysiwyg": "Wysiwyg", @@ -373,7 +373,7 @@ export default { "Reference template": "Reference template", "Create calendar block": "Create calendar block", "Create kanban block": "Create kanban block", - "Group field": "Group field", + "Grouping field": "Grouping field", "Tab name": "Tab name", "Current record blocks": "Current record blocks", "Popup message": "Popup message", @@ -554,4 +554,5 @@ export default { "Enabled languages": "Enabled languages", "View all plugins": "View all plugins", "Print": "Print", + 'Single select and radio fields can be used as the grouping field': 'Single select and radio fields can be used as the grouping field', } diff --git a/packages/core/client/src/locale/zh_CN.ts b/packages/core/client/src/locale/zh_CN.ts index 2bb63e6c5..8a8aff421 100644 --- a/packages/core/client/src/locale/zh_CN.ts +++ b/packages/core/client/src/locale/zh_CN.ts @@ -54,7 +54,7 @@ export default { "Select data source": "选择数据源", "Calendar": "日历", "Kanban": "看板", - "Select group field": "选择分组字段", + "Select grouping field": "选择分组字段", "Media": "多媒体", "Markdown": "Markdown", "Wysiwyg": "富文本", @@ -432,8 +432,8 @@ export default { 'Create calendar block': '创建日历区块', 'Create kanban block': '创建看板区块', - 'Group field': '分组字段', - + 'Grouping field': '分组字段', + 'Single select and radio fields can be used as the grouping field': '数据表的单选字段可以作为分组字段', 'Tab name': '标签名称', 'Current record blocks': '当前数据区块', diff --git a/packages/core/client/src/schema-initializer/items/index.tsx b/packages/core/client/src/schema-initializer/items/index.tsx index e099c1dc9..eb48c87fd 100644 --- a/packages/core/client/src/schema-initializer/items/index.tsx +++ b/packages/core/client/src/schema-initializer/items/index.tsx @@ -20,7 +20,7 @@ import { createTableSelectorSchema, useCollectionDataSourceItems, useCurrentSchema, - useRecordCollectionDataSourceItems, + useRecordCollectionDataSourceItems } from '../utils'; // Block @@ -268,9 +268,10 @@ export const KanbanBlockInitializer = (props) => { schema={{ properties: { groupField: { - title: t('Group field'), + title: t('Grouping field'), enum: fields, required: true, + description: '{{t("Single select and radio fields can be used as the grouping field")}}', 'x-component': 'Select', 'x-component-props': { objectValue: true,