fix(plugin-snapshot): improve translation

This commit is contained in:
chenos 2023-01-11 18:17:11 +08:00
parent 0e5c9779be
commit 6ca67c87fa
3 changed files with 5 additions and 6 deletions

View File

@ -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',

View File

@ -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',
};

View File

@ -5,5 +5,5 @@ export default {
'Snapshot to description': '用于创建表的快照,保存指向的表的当前数据,仅在其所属的记录创建时保存,后续不再更新。',
'View record': '查看数据',
'Allow linking to multiple records': '允许关联多条记录',
'Related collection': '关系表',
'Target collection': '关系表',
};