perf: menu add i18n

fix: 调整icon为本地时select的placeholder未正确展示
This commit is contained in:
王中奇
2025-05-19 22:50:50 +08:00
parent 7aa489a283
commit 4558e5ff47
5 changed files with 201 additions and 80 deletions

View File

@ -551,19 +551,40 @@ const local: App.I18n.Schema = {
},
menu: {
title: 'Menu List',
parentId: 'Parent Menu',
iconType: 'Icon Type',
menuName: 'Menu Name',
icon: 'Menu Icon',
sort: 'Sort',
permission: 'Permission',
orderNum: 'Sort',
perms: 'Permission Code',
component: 'Component Path',
path: 'Route Path',
externalPath: 'External Path',
query: 'Route Parameters',
iframeQuery: 'Iframe Address',
isFrame: 'External Link',
isCache: 'Cache',
menuType: 'Menu Type',
visible: 'Visible',
status: 'Status',
createTime: 'Create Time',
cache: 'cache',
noCache: 'No Cache',
rootName: 'Root',
buttonPermissionList: 'Button Permission List',
emptyMenu: 'Empty Menu',
menuDetail: 'Menu Detail',
iconifyTip: 'iconify address`https://icones.js.org`',
isFrameTip: 'If you choose External Link, the routing address needs to start with `http(s)://`',
isCacheTip:
'If you select yes, it will be cached by `keep-alive`, and the `name` and address of the matching component must be consistent',
visibleTip: 'If you choose Hide, the route will not appear in the sidebar, but it can still be accessed.',
statusTip: 'If you choose to disable, the route will not appear in the sidebar and cannot be accessed.',
permsTip: "Permission string defined in the controller, such as: @SaCheckPermission('system:user:list')",
componentTip:
'The component path to access, such as: `system/user/index`, which is in the `views` directory by default',
pathTip:
'Router pathExample`user`If the external network address needs to be accessed in the internal link,then `http(s)://` beginning',
form: {
parentId: {
required: 'Please select Parent Menu',
@ -581,9 +602,13 @@ const local: App.I18n.Schema = {
required: 'Please enter Menu Name',
invalid: 'Menu Name cannot be empty'
},
sort: {
required: 'Please enter Sort',
invalid: 'Sort cannot be empty'
perms: {
required: 'Please enter permission code',
invalid: 'Permission code cannot be empty'
},
orderNum: {
required: 'Please enter order num',
invalid: 'Order num cannot be empty'
},
isFrame: {
required: 'Please select External Link',
@ -618,10 +643,18 @@ const local: App.I18n.Schema = {
invalid: 'Permission cannot be empty'
}
},
placeholder: {
iconifyIconPlaceholder: 'Please enter an icon',
localIconPlaceholder: 'Please select the local icon',
queryKey: 'Please enter a key',
queryValue: 'Please enter a value',
queryIframe: 'Please enter a iframe address'
},
directory: 'Directory',
menu: 'Menu',
button: 'Button',
addMenu: 'Add Menu',
addChildMenu: 'Add Child Menu',
editMenu: 'Edit Menu'
},
notice: {