From bc927af64055b9e2116561e380caf6f03b8f1fdd Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Tue, 16 Jan 2024 11:31:03 +0800 Subject: [PATCH] refactor: local translate (#3396) --- packages/core/client/src/locale/zh-CN.json | 1 + .../client/src/schema-component/antd/page/PageTab.Settings.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/client/src/locale/zh-CN.json b/packages/core/client/src/locale/zh-CN.json index 69a48f683..3d13f71ee 100644 --- a/packages/core/client/src/locale/zh-CN.json +++ b/packages/core/client/src/locale/zh-CN.json @@ -201,6 +201,7 @@ "Actions": "操作", "Update": "更新", "Update record": "更新数据", + "Unnamed":"未命名", "View": "查看", "View record": "查看数据", "Refresh": "刷新", diff --git a/packages/core/client/src/schema-component/antd/page/PageTab.Settings.tsx b/packages/core/client/src/schema-component/antd/page/PageTab.Settings.tsx index a57994bfe..029fb4687 100644 --- a/packages/core/client/src/schema-component/antd/page/PageTab.Settings.tsx +++ b/packages/core/client/src/schema-component/antd/page/PageTab.Settings.tsx @@ -65,7 +65,7 @@ export const pageTabSettings = new SchemaSettings({ const { t } = useTranslation(); const { schema } = useSchemaToolbar(); return { - title: 'Delete', + title: t('Delete'), eventKey: 'remove', onClick() { modal.confirm({