diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 5a8344cd..f3348e5f 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -8,6 +8,8 @@ export default { title: 'Core Network Management Platform', desc: 'Core Network Management Platform', loading: 'Please wait...', + ipnutPlease: 'Please input', + selectPlease: 'please select', tipTitle: 'Prompt', msgSuccess: 'Success {msg}', errorFields: 'Please fill in the required information in {num} correctly!', @@ -25,11 +27,13 @@ export default { editText: 'Edit', deleteText: 'Delete', downloadText: 'Download', + import:'Import', export:'Export', uploadText: 'Upload', unableNull:' Cannot be empty', moreText: 'More', searchBarText: 'Search bar', + tableStripedText: 'Form Zebra', reloadText: 'Refresh', sizeText: 'Density', size: { @@ -59,7 +63,7 @@ export default { } }, - // 导入 + // 组件 components: { UploadModal:{ uploadTitle:'Data Import', @@ -89,6 +93,23 @@ export default { codeSmsSend: 'Successfully sent, please pay attention to checking the SMS', }, + // 布局 + loayouts: { + rightContent: { + fullscreen: "Full Screen", + logout: "Logout", + profile: "Profile", + settings: "Settings", + }, + tabs: { + reload: "Refresh current", + more: "More Options", + closeCurrent: "Close Current", + closeOther: "Close Other", + closeAll: "Close All", + } + }, + // 页面 views: { index: { @@ -106,6 +127,22 @@ export default { serialNum: 'serialNum', expiryDate: 'expiryDate', }, + error: { + err403: { + ttile: 'No access', + subTitle:'Please do not perform illegal operations, you can go back to the main page or return to the', + backHome: 'Back to Home', + back: 'Back', + }, + err404: { + ttile: 'Match page not found', + subTitle:'Sorry, the page you are looking for does not exist.', + backHome: 'Back to Home', + tipTitle: "Can't find the page?", + paragraph: 'Try checking the URL for errors and then press the refresh button on your browser.', + paragraph1: 'Try to find other content in our application.', + }, + }, login: { tabPane1: 'Account password login', tabPane2: 'Login with phone number', @@ -361,6 +398,8 @@ export default { execUPFStart: 'Execution successful, please stop capturing packets according to the situation', execUPFStopA: 'Stopped, please start capturing packets according to the situation', execUPFStop: 'Execution successful, packet capture stopped', + execUPFCmdA: 'Suitable for other network element anomalies', + execUPFCmdB: 'Suitable for UPF anomalies', }, task: { neTypePlease: 'Query network element type', @@ -487,20 +526,27 @@ export default { logoutSuccess: "User {num} has been forcibly retired", }, monitor:{ - avgLoad: '平均负载', - memory: '内存', - cache: '缓存', - io: '磁盘', - network: '网络', - loadDetail: "负载率", - resourceUsage: "资源使用率", - read: '读取', - write: '写入', - readWriteCount: '读写次数', - count: '次', - readWriteTime: '读写延迟', - up: '上行', - down: '下行', + filter: "Global Filter", + startTime: 'Start Time', + endTime: 'End Time', + today: 'Today', + yesterday: 'Yesterday', + week: 'This Week', + month: 'This Month', + avgLoad: 'Average loads', + memory: 'RAM', + cache: 'Cache', + io: 'Disk', + network: 'Network', + loadDetail: "Load Factor", + resourceUsage: "Resource utilization rate", + read: 'retrieve', + write: 'write', + readWriteCount: 'Number of reads and writes', + count: 'substandard', + readWriteTime: 'Read/Write Delay', + up: 'up train', + down: 'down train', }, online:{ mettingId:'Session number', @@ -547,23 +593,81 @@ export default { email:'E-mail', fromClass:'DEPARTMENT', userWork:'User position', + userWorkPlease: 'Please select user post', userTip:'User Description', loginPwd:'Login password', updateSure:'Do you want to update existing data', downloadObj:'Download Tpl', }, + setting: { + charMaxLen: 'bit character length', + saveSubmit: 'Submit Save', + saveSuccess: 'Submit Save Successful', + revert: 'Vat', + revertSuccess: 'Vat Successful', + uploadFormat: 'Only the upload image format ({format}) is supported', + uploadSize: 'Image file size must be less than {size}MB', + uploadSuccess: 'File uploaded successfully, submit and save to take effect', + sysLogo: 'System Logo', + sysLogoBrand: 'Brand', + sysLogoIcon: 'Icon', + sysLogoUpload: 'Upload Logo', + sysLogoTipContent: 'Confirm that you want to submit the currently changed logo file?', + sysLogoTipContentUpload: 'Are you sure you want to upload the logo file?', + sysLogoInstruction: 'The system logo display style is shown in the preview area.', + sysLogoInstruction1: 'If you want to change the image, please adjust it accordingly before uploading.', + sysLogoInstruction2: 'Show the whole picture to the system logo area, please use transparent background, size ratio size', + sysLogoInstruction3: 'Displayed as logo + system name to the system logo area.', + sysLogoInstruction4: 'Logo size ratio size', + sysName: 'System Name', + sysNamePlease: 'Please enter the system name', + sysNameLimitation: 'System Name Restrictions', + sysNameTipContent: 'Confirm that you want to submit the current changed system name?', + sysCopyright: 'Copyright Notice', + sysCopyrightPlease: 'Please enter copyright notice', + sysCopyrightLimitation: 'Copyright Notice Limitation', + sysCopyrightTipContent: 'Confirmation of submitting a copyright notice for the current change?', + sysLoginBg: 'Login screen background', + sysLoginBgNone: 'No background image', + sysLoginBgUpload: 'Upload background image', + sysLoginBgTipContentUpload: 'Confirmed to upload login screen background file?', + sysLoginBgTipContent: 'Are you sure you want to submit the currently changed login screen background?', + sysLoginBgTipContentRevert: 'Are you sure you want to restore the background image to the initial system default background?', + sysLoginBgInstruction: 'The background style of the system login interface is shown in the preview area, please refer to the actual display.', + sysLoginBgInstruction1: 'Please select the appropriate image for uploading.', + sysLoginBgInstruction2: 'Restore the background image to the initial system default background by clicking the Restore button.', + }, role:{ - allScopeOptions:'All data permissions', - byMyselfScopeOptions:'Custom data permissions', - onlyClassScopeOptions:'Data permissions of this department', - classAllScopeOptions:'Data permissions for this department and the following', - myselfScopeOptions:'Only personal data permissions', - roleId:'Role number', - roleName:'Role Name', - roleKey:'Role key', - roleSort:'Role order', - roleStatus:'Role status', - createTime:'Creation time', + allScopeOptions:'All data permissions', + byMyselfScopeOptions:'Custom data permissions', + onlyClassScopeOptions:'Data permissions of this department', + classAllScopeOptions:'Data permissions for this department and the following', + myselfScopeOptions:'Only personal data permissions', + roleId:'Role Id', + roleName:'Role Name', + roleKey:'Role Key', + roleSort:'Role order', + roleStatus:'Status', + createTime:'Creation time', + trueValue:'Please enter {msg} correctly', + roleInfo:'Role information', + distribute:'Assign data permissions', + open:'Enable', + close:'Deactivate', + statusSure:'Are you sure you want {text} {roleName} role?', + statusFailed:'{roleName} {text} failed', + delSure:'Confirm to delete the data item with role number [{roleId}]?', + distributeUser:'Assign users', + roleMark:'Role Description', + menu:'Menu permissions', + roleKeyTip:"Example of permission identification: Use permission identification in dba controller, such as: @PreAuthorize({ hasRoles: ['dba'] })", + openSwitch:'Expand/Collapse', + selAllSwitch:'Select all/Deselect all', + relationSwitch:'Father and son linkage', + normal:'Normal', + stop:'Pause', + preScope:'Scope of authority', + dataPer:'Data permission', } }, }, diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 153f4b80..5b4989ee 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -8,6 +8,8 @@ export default { title: '核心网管理平台', desc: '核心网管理平台', loading: '请稍等...', + ipnutPlease: '请输入', + selectPlease: '请选择', tipTitle: '提示', msgSuccess: '{msg}成功 ', errorFields: '请正确填写 {num} 处必填信息!', @@ -25,11 +27,13 @@ export default { editText: '编辑', deleteText: '删除', downloadText: '下载', + import:'导入', export:'导出', uploadText: '上传', unableNull:'不能为空', moreText: '更多', searchBarText: '搜索栏', + tableStripedText: '表格斑马纹', reloadText: '刷新', sizeText: '密度', size: { @@ -59,7 +63,7 @@ export default { } }, - // 导入 + // 组件 components: { UploadModal:{ uploadTitle:'数据导入', @@ -89,6 +93,23 @@ export default { codeSmsSend: '发送成功,请注意查看短信', }, + // 布局 + loayouts: { + rightContent: { + fullscreen: "全屏显示", + logout: "退出登录", + profile: "个人中心", + settings: "个人设置", + }, + tabs: { + reload: "刷新当前", + more: "更多选项", + closeCurrent: "关闭当前", + closeOther: "关闭其他", + closeAll: "关闭全部", + } + }, + // 页面 views: { index: { @@ -106,6 +127,22 @@ export default { serialNum: '序列号', expiryDate: '许可证到期日期', }, + error: { + err403: { + ttile: '没有访问权限', + subTitle:'请不要进行非法操作,您可以返回主页面或返回', + backHome: '返回首页', + back: '返回', + }, + err404: { + ttile: '找不到匹配页面', + subTitle:'对不起,您正在寻找的页面不存在。', + backHome: '返回首页', + tipTitle: '找不到网页?', + paragraph: '尝试检查URL的错误,然后按浏览器上的刷新按钮。', + paragraph1: '尝试在我们的应用程序中找到其他内容。', + }, + }, login: { tabPane1: '账号密码登录', tabPane2: '手机号登录', @@ -361,6 +398,8 @@ export default { execUPFStart: '执行成功, 请根据情况停止抓包', execUPFStopA: '已经停止, 请根据情况开始抓包', execUPFStop: '执行成功, 抓包已停止', + execUPFCmdA: '适合其他网元异常,UPF配合抓包的情况', + execUPFCmdB: '适合UPF异常需要抓包分析的情况', }, task: { neTypePlease: '请选择网元类型', @@ -487,6 +526,13 @@ export default { logoutSuccess: "已强退用户 {num}", }, monitor:{ + filter: "全局过滤", + startTime: '开始时间', + endTime: '结束时间', + today: '昨天', + yesterday: '今天', + week: '本周', + month: '本月', avgLoad: '平均负载', memory: '内存', cache: '缓存', @@ -547,11 +593,50 @@ export default { email:'电子邮箱', fromClass:'所属部门', userWork:'用户岗位', + userWorkPlease: '请选择用户岗位', userTip:'用户说明', loginPwd:'登入密码', updateSure:'是否更新已经存在的数据', downloadObj:'下载模板', }, + setting: { + charMaxLen: '位字符长度', + saveSubmit: '提交保存', + saveSuccess: '提交保存成功', + revert: '还原', + revertSuccess: '还原成功', + uploadFormat: '只支持上传图片格式({format})', + uploadSize: '图片文件大小必须小于 {size}MB', + uploadSuccess: '文件上传成功,提交保存生效', + sysLogo: '系统LOGO', + sysLogoBrand: '全图', + sysLogoIcon: '小图', + sysLogoUpload: '上传LOGO', + sysLogoTipContent: '确认要提交当前变更的LOGO文件吗?', + sysLogoTipContentUpload: '确认要上传LOGO文件吗?', + sysLogoInstruction: '系统LOGO展示样式如预览区域所示', + sysLogoInstruction1: '如需变更请将图片进行对应处理调整后在进行上传。', + sysLogoInstruction2: '将整张图片展示到系统LOGO区域,请使用透明背景,尺寸比例大小', + sysLogoInstruction3: '以LOGO+系统名称的形式展示到系统LOGO区域。', + sysLogoInstruction4: 'LOGO尺寸比例大小', + sysName: '系统名称', + sysNamePlease: '请输入系统名称', + sysNameLimitation: '系统名称限制', + sysNameTipContent: '确认要提交当前变更的系统名称吗?', + sysCopyright: '版权声明', + sysCopyrightPlease: '请输入版权声明', + sysCopyrightLimitation: '版权声明限制', + sysCopyrightTipContent: '确认要提交当前变更的版权声明吗?', + sysLoginBg: '登录界面背景', + sysLoginBgNone: '暂无背景图', + sysLoginBgUpload: '上传背景图', + sysLoginBgTipContentUpload: '确认要上传登录界面背景文件吗?', + sysLoginBgTipContent: '确认要提交当前变更的登录界面背景吗?', + sysLoginBgTipContentRevert: '确认要将背景图还原到系统初始默认的背景吗?', + sysLoginBgInstruction: '系统登录界面背景样式如预览区域所示,请以实际显示为准', + sysLoginBgInstruction1: '请将选择合适的图片进行进行上传。', + sysLoginBgInstruction2: '通过点击《还原》按钮,将背景图还原到系统初始默认的背景。', + }, role:{ allScopeOptions:'全部数据权限', byMyselfScopeOptions:'自定数据权限', diff --git a/src/layouts/components/RightContent.vue b/src/layouts/components/RightContent.vue index 78972327..924416c5 100644 --- a/src/layouts/components/RightContent.vue +++ b/src/layouts/components/RightContent.vue @@ -50,7 +50,7 @@ function fnChangeLocale(e: any) { - + diff --git a/src/layouts/components/Tabs.vue b/src/layouts/components/Tabs.vue index df9df2d5..371cac10 100644 --- a/src/layouts/components/Tabs.vue +++ b/src/layouts/components/Tabs.vue @@ -3,6 +3,8 @@ import IconFont from '@/components/IconFont/index.vue'; import { computed, watch } from 'vue'; import { useRouter } from 'vue-router'; import useTabsStore from '@/store/modules/tabs'; +import useI18n from '@/hooks/useI18n'; +const { t } = useI18n(); const tabsStore = useTabsStore(); const router = useRouter(); @@ -126,7 +128,7 @@ watch(router.currentRoute, v => tabsStore.tabOpen(v), { immediate: true }); @@ -1207,7 +1210,7 @@ onMounted(() => { :value="modalState.from.postIds" disabled mode="multiple" - placeholder="请选择用户岗位" + :placeholder="t('views.system.user.userWorkPlease')" option-label-prop="postName" :options="modalState.options.posts" :field-names="{ label: 'postName', value: 'postId' }" @@ -1238,9 +1241,9 @@ onMounted(() => { diff --git a/src/views/traceManage/analysis/index.vue b/src/views/traceManage/analysis/index.vue index 73eb8ddd..c88be98f 100644 --- a/src/views/traceManage/analysis/index.vue +++ b/src/views/traceManage/analysis/index.vue @@ -454,7 +454,7 @@ onMounted(() => {