diff --git a/packages/plugins/snapshot-field/src/client/interface.ts b/packages/plugins/snapshot-field/src/client/interface.ts index 703a661e78..6d3e8a6a3a 100644 --- a/packages/plugins/snapshot-field/src/client/interface.ts +++ b/packages/plugins/snapshot-field/src/client/interface.ts @@ -1,9 +1,8 @@ import { ISchema } from '@formily/react'; -import { IField } from '@nocobase/client'; +import { IField, interfacesProperties } from '@nocobase/client'; import { cloneDeep } from 'lodash'; -import { interfacesProperties } from '@nocobase/client'; -import { useSnapshotTranslation } from './locale'; import { useMemo } from 'react'; +import { useSnapshotTranslation } from './locale'; const { defaultProps, recordPickerSelector } = interfacesProperties; @@ -82,7 +81,7 @@ export const useSnapshotInterface = () => { ...defaultProps, target: { type: 'string', - title: t('Related collection'), + title: t('Target collection'), required: true, 'x-reactions': ['{{useAsyncDataSource(loadCollections)}}'], 'x-decorator': 'FormItem', diff --git a/packages/plugins/snapshot-field/src/client/locale/en-US.ts b/packages/plugins/snapshot-field/src/client/locale/en-US.ts index 0794d0e6e7..723a8ab753 100644 --- a/packages/plugins/snapshot-field/src/client/locale/en-US.ts +++ b/packages/plugins/snapshot-field/src/client/locale/en-US.ts @@ -6,5 +6,5 @@ export default { 'Allow linking to multiple records': 'Allow linking to multiple records', 'Snapshot to description': 'It is used to create a snapshot of the table, save the current data of the pointed table, and save it only when the record to which it belongs is created, and will not be updated later.', - 'Related collection': 'Related collection', + 'Target collection': 'Target collection', }; diff --git a/packages/plugins/snapshot-field/src/client/locale/zh-CN.ts b/packages/plugins/snapshot-field/src/client/locale/zh-CN.ts index 4f27383a78..458944ce03 100644 --- a/packages/plugins/snapshot-field/src/client/locale/zh-CN.ts +++ b/packages/plugins/snapshot-field/src/client/locale/zh-CN.ts @@ -5,5 +5,5 @@ export default { 'Snapshot to description': '用于创建表的快照,保存指向的表的当前数据,仅在其所属的记录创建时保存,后续不再更新。', 'View record': '查看数据', 'Allow linking to multiple records': '允许关联多条记录', - 'Related collection': '关系表', + 'Target collection': '关系表', };