diff --git a/packages/core/client/src/file-manager/FileStorageShortcut.tsx b/packages/core/client/src/file-manager/FileStorageShortcut.tsx index 5099ef1a0..d28de15a2 100644 --- a/packages/core/client/src/file-manager/FileStorageShortcut.tsx +++ b/packages/core/client/src/file-manager/FileStorageShortcut.tsx @@ -1,4 +1,4 @@ -import { SettingOutlined } from '@ant-design/icons'; +import { FileOutlined } from '@ant-design/icons'; import { uid } from '@formily/shared'; import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; @@ -31,7 +31,7 @@ export const FileStorageShortcut = () => { onClick={() => { setVisible(true); }} - icon={} + icon={} title={t('File storages')} /> diff --git a/packages/core/client/src/locale/en_US.ts b/packages/core/client/src/locale/en_US.ts index 65075700f..03a2141a1 100644 --- a/packages/core/client/src/locale/en_US.ts +++ b/packages/core/client/src/locale/en_US.ts @@ -552,4 +552,5 @@ export default { "Subform": "Subform", "Regular expression": "Pattern", "Enabled languages": "Enabled languages", + "View all plugins": "View all plugins", } diff --git a/packages/core/client/src/locale/zh_CN.ts b/packages/core/client/src/locale/zh_CN.ts index 00ae17085..ca2461154 100644 --- a/packages/core/client/src/locale/zh_CN.ts +++ b/packages/core/client/src/locale/zh_CN.ts @@ -648,4 +648,5 @@ export default { "Use the same time zone (GMT) for all users": "所有用户使用同一时区 (格林尼治标准时间)", "Province/city/area name": "省市区名称", "Enabled languages": "启用的语言", + "View all plugins": "查看所有插件", } diff --git a/packages/core/client/src/plugin-manager/PluginManager.tsx b/packages/core/client/src/plugin-manager/PluginManager.tsx index 8e06f89a3..916647e7e 100644 --- a/packages/core/client/src/plugin-manager/PluginManager.tsx +++ b/packages/core/client/src/plugin-manager/PluginManager.tsx @@ -1,8 +1,9 @@ -import { MoreOutlined, SettingOutlined } from '@ant-design/icons'; +import { AppstoreOutlined, EllipsisOutlined } from '@ant-design/icons'; import { ConfigProvider, Menu, MenuItemProps, Spin, Tooltip } from 'antd'; import cls from 'classnames'; import { get } from 'lodash'; import React, { createContext, useContext } from 'react'; +import { useTranslation } from 'react-i18next'; import { useAPIClient, useRequest } from '../api-client'; import { PluginManagerContext } from './context'; @@ -52,6 +53,7 @@ PluginManager.Toolbar = (props: ToolbarProps) => { const { components } = useContext(PluginManagerContext); const { items = [] } = props; const [pinned, unpinned] = splitItems(items); + const { t } = useTranslation(); return (
@@ -66,7 +68,7 @@ PluginManager.Toolbar = (props: ToolbarProps) => { ); })} {unpinned.length > 0 && ( - }> + }> {unpinned.map((item, index) => { const Action = get(components, item.component); return ( @@ -78,8 +80,8 @@ PluginManager.Toolbar = (props: ToolbarProps) => { ); })} {unpinned.length > 0 && } - }> - 管理插件 + }> + {t('View all plugins')} )}