diff --git a/packages/core/client/src/locale/en_US.ts b/packages/core/client/src/locale/en_US.ts index 854f5079bc..74901fb1d6 100644 --- a/packages/core/client/src/locale/en_US.ts +++ b/packages/core/client/src/locale/en_US.ts @@ -108,6 +108,9 @@ export default { "Add block": "Add block", "Add new": "Add new", "Add record": "Add record", + 'Add child':'Add child', + 'Collapse all':'Collapse all', + 'Expand all':'Expand all', "Custom field display name": "Custom field display name", "Display fields": "Display collection fields", "Edit record": "Edit record", diff --git a/packages/core/client/src/locale/ja_JP.ts b/packages/core/client/src/locale/ja_JP.ts index 0ee613a1b2..e870435c04 100644 --- a/packages/core/client/src/locale/ja_JP.ts +++ b/packages/core/client/src/locale/ja_JP.ts @@ -42,6 +42,9 @@ export default { "Category name":"分類名", "Delete category":"分類の削除", "Collection category":"Collection category", + 'Add child':'サブレコードの追加', + 'Collapse all':'すべて閉じる', + 'Expand all':'すべて展開', "Visible":"表示", "Read only":"読み取り専用(編集不可)", "Easy reading":"読み取り専用(読取りモード)", diff --git a/packages/core/client/src/locale/zh_CN.ts b/packages/core/client/src/locale/zh_CN.ts index f692c31b4a..a7c5e4ba61 100644 --- a/packages/core/client/src/locale/zh_CN.ts +++ b/packages/core/client/src/locale/zh_CN.ts @@ -58,6 +58,9 @@ export default { "Sort":"排序", "Categories":"数据表类别", "Category name":"分类名称", + 'Add child':'添加子记录', + 'Collapse all':'全部收起', + 'Expand all':'全部展开', "Roles & Permissions": "角色和权限", "Edit profile": "个人资料", "Change password": "修改密码", diff --git a/packages/core/client/src/schema-initializer/buttons/TableActionColumnInitializers.tsx b/packages/core/client/src/schema-initializer/buttons/TableActionColumnInitializers.tsx index 57e831a7e9..ad6a877a08 100644 --- a/packages/core/client/src/schema-initializer/buttons/TableActionColumnInitializers.tsx +++ b/packages/core/client/src/schema-initializer/buttons/TableActionColumnInitializers.tsx @@ -112,7 +112,7 @@ export const TableActionColumnInitializers = (props: any) => { (collection as any).template === 'tree' && treeTable !== false && { type: 'item', - title: t('Add Child'), + title: t('Add child'), component: 'CreateChildInitializer', schema: { 'x-component': 'Action.Link', diff --git a/packages/core/client/src/schema-initializer/items/CreateChildInitializer.tsx b/packages/core/client/src/schema-initializer/items/CreateChildInitializer.tsx index b6153bebff..dfdfc726a8 100644 --- a/packages/core/client/src/schema-initializer/items/CreateChildInitializer.tsx +++ b/packages/core/client/src/schema-initializer/items/CreateChildInitializer.tsx @@ -4,7 +4,7 @@ export const CreateChildInitializer = (props) => { const schema = { type: 'void', - title: '{{ t("Add Child") }}', + title: '{{ t("Add child") }}', 'x-action': 'create', 'x-designer': 'Action.Designer', 'x-component': 'Action',