From 2f8b0e75f80b07412a63e9b2f870727ab786c6c5 Mon Sep 17 00:00:00 2001 From: chenos Date: Thu, 11 Jan 2024 10:06:44 +0800 Subject: [PATCH] feat: optimize translation --- .../client/src/collection-manager/interfaces/collection.ts | 4 +++- packages/core/client/src/locale/en_US.json | 2 ++ packages/core/client/src/locale/zh-CN.json | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/core/client/src/collection-manager/interfaces/collection.ts b/packages/core/client/src/collection-manager/interfaces/collection.ts index e19412745..35ddad771 100644 --- a/packages/core/client/src/collection-manager/interfaces/collection.ts +++ b/packages/core/client/src/collection-manager/interfaces/collection.ts @@ -7,7 +7,9 @@ export const collection: IField = { type: 'string', group: 'advanced', order: 5, - title: '{{t("Collection")}}', + title: '{{t("Collection selector")}}', + description: + '{{t("Providing certain collections as options for users, typically used in polymorphic or inheritance scenarios")}}', sortable: true, default: { type: 'string', diff --git a/packages/core/client/src/locale/en_US.json b/packages/core/client/src/locale/en_US.json index c7aff843b..17cf94675 100644 --- a/packages/core/client/src/locale/en_US.json +++ b/packages/core/client/src/locale/en_US.json @@ -55,6 +55,8 @@ "Delete": "Delete", "UI editor": "UI editor", "Collection": "Collection", + "Collection selector": "Collection selector", + "Providing certain collections as options for users, typically used in polymorphic or inheritance scenarios": "Providing certain collections as options for users, typically used in polymorphic or inheritance scenarios", "Collections & Fields": "Collections & Fields", "All collections": "All collections", "Add category": "Add category", diff --git a/packages/core/client/src/locale/zh-CN.json b/packages/core/client/src/locale/zh-CN.json index 97cec8ee2..85b7e857a 100644 --- a/packages/core/client/src/locale/zh-CN.json +++ b/packages/core/client/src/locale/zh-CN.json @@ -62,6 +62,8 @@ "Delete": "删除", "UI editor": "界面配置", "Collection": "数据表", + "Collection selector": "数据表选择器", + "Providing certain collections as options for users, typically used in polymorphic or inheritance scenarios": "将数据表里的某些表作为可选项供给用户选择,一般用在多态或继承的场景里", "Enable child collections": "启用子表", "Allow adding records to the current collection": "允许向当前数据表里添加记录", "Collections & Fields": "数据表配置",