首次提交
This commit is contained in:
1
chengduTestPlant/src/i18n/en/crud.js
Normal file
1
chengduTestPlant/src/i18n/en/crud.js
Normal file
@@ -0,0 +1 @@
|
||||
export default {}
|
||||
8
chengduTestPlant/src/i18n/en/maResource.js
Normal file
8
chengduTestPlant/src/i18n/en/maResource.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export default {
|
||||
loadingText: "Loading...",
|
||||
searchFileNotice: "Search file by name",
|
||||
searchResource: "Search resource type",
|
||||
saveNetworkImage: "Save network image",
|
||||
networkImageNotice: "Please paste the web picture address",
|
||||
ok: "OK"
|
||||
}
|
||||
53
chengduTestPlant/src/i18n/en/menus.js
Normal file
53
chengduTestPlant/src/i18n/en/menus.js
Normal file
@@ -0,0 +1,53 @@
|
||||
export default {
|
||||
// 特殊页
|
||||
openForm: "CRUD",
|
||||
|
||||
// 首页菜单
|
||||
home: "Home",
|
||||
dashboard: "Dashboard",
|
||||
userCenter: "User Center",
|
||||
message: "Message Center",
|
||||
"setting:config": "System Setting",
|
||||
demo: "Component Demo",
|
||||
|
||||
// 权限
|
||||
permission: "Permission",
|
||||
"system:user": "User Manage",
|
||||
"system:role": "Role Manage",
|
||||
"system:dept": "Department Manage",
|
||||
"system:menu": "Menu Manage",
|
||||
"system:post": "Post Manage",
|
||||
|
||||
dataCenter: "Data Center",
|
||||
"system:dict": "Dictionary",
|
||||
"system:attachment": "Attached",
|
||||
"system:dataMaintain": "Table Maintenance",
|
||||
"system:notice": "Notice",
|
||||
apps: "App Center",
|
||||
"system:appGroup": "App Group",
|
||||
"system:app": "App Manage",
|
||||
apis: "Api Center",
|
||||
"system:apiGroup": "Api Group",
|
||||
"system:api": "Api Manage",
|
||||
|
||||
// 监控
|
||||
monitor: "Monitor",
|
||||
"system:monitor:server": "Server Monitor",
|
||||
"system:onlineUser": "Online User",
|
||||
"system:cache": "Cache Monitor",
|
||||
"system:monitor:rely": "Reliance Monitor",
|
||||
logs: "Logs Monitor",
|
||||
"system:queueLog": "Queue Logs",
|
||||
"system:loginLog": "Login Logs",
|
||||
"system:operLog": "Operation Logs",
|
||||
"system:apiLog": "Apis Logs",
|
||||
|
||||
// 工具
|
||||
devTools: "Tools",
|
||||
"setting:module": "Module Manage",
|
||||
"setting:code": "Code Generator",
|
||||
"setting:code:update": "Edit the build information",
|
||||
"setting:crontab": "Crontab",
|
||||
"setting:table": "Table Designer",
|
||||
systemInterface: "System Apis"
|
||||
}
|
||||
12
chengduTestPlant/src/i18n/en/skin.js
Normal file
12
chengduTestPlant/src/i18n/en/skin.js
Normal file
@@ -0,0 +1,12 @@
|
||||
export default {
|
||||
mine: "Mine",
|
||||
businessGray: "Business gray",
|
||||
city: "City",
|
||||
|
||||
mineDesc: "Predominantly pure white, Mine defaults to skin",
|
||||
businessGrayDesc: "Gray versatility and atmosphere, creating business and stability",
|
||||
cityDesc: "May there be a warmth in every angle of the city",
|
||||
|
||||
activated: "Activated",
|
||||
use: "Use"
|
||||
}
|
||||
81
chengduTestPlant/src/i18n/en/sys.js
Normal file
81
chengduTestPlant/src/i18n/en/sys.js
Normal file
@@ -0,0 +1,81 @@
|
||||
export default {
|
||||
pageSetting: "Page Setting",
|
||||
chinese: "简体中文",
|
||||
english: "English",
|
||||
search: "Search",
|
||||
fullScreen: "Full Screen",
|
||||
closeFullScreen: "Close Full Screen",
|
||||
changeSkin: "Change Skin",
|
||||
skin: "Skin",
|
||||
layouts: "Layout",
|
||||
language: "Language",
|
||||
dark: "Dark Mode",
|
||||
tag: "Open Tags",
|
||||
menuFold: "Menu Fold",
|
||||
menuWidth: "Mene Width",
|
||||
skinHelp: "Set up background skins",
|
||||
layoutsHelp: "Set the background display",
|
||||
languageHelp: "Set the page language and the request background language",
|
||||
darkHelp: "Sets the page display mode",
|
||||
tagHelp: "Whether to enable multi-tab mode",
|
||||
menuFoldHelp: "Whether the left menu of the system is collapsed",
|
||||
menuWidthHelp: "Sets the display width of the left menu",
|
||||
saveToBackend: "Save to backend",
|
||||
backendSettingTitle: "Backend setting",
|
||||
systemPrimaryColor: "System Primary Color",
|
||||
personalizedConfig: "Personalized configuration",
|
||||
layout: {
|
||||
classic: "Classic",
|
||||
columns: "Columns",
|
||||
banner: "Banner"
|
||||
},
|
||||
userCenter: "User Center",
|
||||
clearCache: "Clear Cache",
|
||||
logout: "Logout System",
|
||||
logoutAlert: "Exit prompt",
|
||||
logoutMessage: "Are you sure you want to sign out?",
|
||||
operationMessage: {
|
||||
message: "Message",
|
||||
notification: "Notification",
|
||||
todo: "Todo"
|
||||
},
|
||||
goHome: "Go Home",
|
||||
notFoundPage: "Exit tip Ah oh, the page visited was hijacked by the Martians...",
|
||||
login: {
|
||||
slogan: "High-quality test management system",
|
||||
title: "Login System",
|
||||
username: "Username",
|
||||
usernameNotice: "Please enter the username",
|
||||
password: "Passoword",
|
||||
passwordNotice: "Please enter the password",
|
||||
verifyCode: "Please enter the verification code",
|
||||
verifyCodeNotice: "Please enter the correct verification code",
|
||||
loginBtn: "Login in",
|
||||
otherLoginType: "Other ways to sign in Maybe"
|
||||
},
|
||||
verifyCode: {
|
||||
switch: "Click Toggle verification code",
|
||||
error: "The verification code is incorrect",
|
||||
notice: "Please enter the verification code"
|
||||
},
|
||||
i18n: "open multi-language",
|
||||
i18nHelp: "Whether to enable the multi-language feature",
|
||||
animation: "Animation",
|
||||
animationHelp: "Page transition animation effect",
|
||||
animate: {
|
||||
fade: "The page fades out",
|
||||
sliderLeft: "The page fades to the left",
|
||||
sliderRight: "The page fades to the right",
|
||||
sliderDown: "The page fades to the down",
|
||||
sliderUp: "The page fades to the up"
|
||||
},
|
||||
tags: {
|
||||
refresh: "Refresh",
|
||||
fullscreen: "Full screen",
|
||||
closeTag: "Close current tag",
|
||||
closeOtherTag: "Close other tag"
|
||||
},
|
||||
noticeTitle: "System Prompted",
|
||||
save: "Save",
|
||||
cancel: "Cancel"
|
||||
}
|
||||
8
chengduTestPlant/src/i18n/en/upload.js
Normal file
8
chengduTestPlant/src/i18n/en/upload.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export default {
|
||||
fileHashFail: "Get file hash failed, please try again!",
|
||||
sizeLimit: "The file size exceeds the upload limit",
|
||||
uploadFailed: "File upload failed",
|
||||
buttonText: "Local upload",
|
||||
clickUpload: "Click upload",
|
||||
uploadDesc: "Drag the file here, or "
|
||||
}
|
||||
0
chengduTestPlant/src/i18n/en/user.js
Normal file
0
chengduTestPlant/src/i18n/en/user.js
Normal file
36
chengduTestPlant/src/i18n/index.js
Normal file
36
chengduTestPlant/src/i18n/index.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import { createI18n } from "vue-i18n"
|
||||
import tool from "@/utils/tool"
|
||||
|
||||
const setting = tool.local.get("setting")
|
||||
|
||||
const getLanguage = () => {
|
||||
const loadFile = () => {
|
||||
if (setting.language === "zh_CN") {
|
||||
return import.meta.glob("./zh_CN/*.js", { eager: true })
|
||||
} else if (setting.language === "en") {
|
||||
return import.meta.glob("./en/*.js", { eager: true })
|
||||
}
|
||||
}
|
||||
|
||||
const files = loadFile()
|
||||
|
||||
const messages = { [setting.language]: {} }
|
||||
|
||||
for (let path in files) {
|
||||
const name = path.match(/([A-Za-z0-9_]+)/g)[1]
|
||||
if (files[path].default) {
|
||||
messages[setting.language][name] = files[path].default
|
||||
}
|
||||
}
|
||||
return messages
|
||||
}
|
||||
|
||||
const i18n = createI18n({
|
||||
locale: setting.language,
|
||||
legacy: false,
|
||||
globalInjection: true,
|
||||
fallbackLocale: "zh_CN",
|
||||
messages: getLanguage()
|
||||
})
|
||||
|
||||
export default i18n
|
||||
1
chengduTestPlant/src/i18n/zh_CN/crud.js
Normal file
1
chengduTestPlant/src/i18n/zh_CN/crud.js
Normal file
@@ -0,0 +1 @@
|
||||
export default {}
|
||||
8
chengduTestPlant/src/i18n/zh_CN/maResource.js
Normal file
8
chengduTestPlant/src/i18n/zh_CN/maResource.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export default {
|
||||
loadingText: "数据加载中...",
|
||||
searchFileNotice: "文件名搜索",
|
||||
searchResource: "搜索资源类型",
|
||||
saveNetworkImage: "保存网络图片",
|
||||
networkImageNotice: "请粘贴网络图片地址",
|
||||
ok: "确定"
|
||||
}
|
||||
53
chengduTestPlant/src/i18n/zh_CN/menus.js
Normal file
53
chengduTestPlant/src/i18n/zh_CN/menus.js
Normal file
@@ -0,0 +1,53 @@
|
||||
export default {
|
||||
// 特殊页
|
||||
openForm: "公共表单",
|
||||
|
||||
// 首页菜单
|
||||
home: "首页",
|
||||
dashboard: "仪表盘",
|
||||
userCenter: "个人中心",
|
||||
message: "消息中心",
|
||||
"setting:config": "系统配置",
|
||||
demo: "组件演示",
|
||||
|
||||
// 权限
|
||||
permission: "权限",
|
||||
"system:user": "用户管理",
|
||||
"system:role": "角色管理",
|
||||
"system:dept": "部门管理",
|
||||
"system:menu": "菜单管理",
|
||||
"system:post": "岗位管理",
|
||||
|
||||
dataCenter: "数据",
|
||||
"system:dict": "数据字典",
|
||||
"system:attachment": "附件管理",
|
||||
"system:dataMaintain": "数据表维护",
|
||||
"system:notice": "系统公告",
|
||||
apps: "应用中心",
|
||||
"system:appGroup": "应用分组",
|
||||
"system:app": "应用管理",
|
||||
apis: "应用接口",
|
||||
"system:apiGroup": "接口分组",
|
||||
"system:api": "接口管理",
|
||||
|
||||
// 监控
|
||||
monitor: "监控",
|
||||
"system:monitor:server": "服务监控",
|
||||
"system:onlineUser": "在线用户",
|
||||
"system:cache": "缓存监控",
|
||||
"system:monitor:rely": "依赖监控",
|
||||
logs: "日志监控",
|
||||
"system:queueLog": "队列日志",
|
||||
"system:loginLog": "登录日志",
|
||||
"system:operLog": "操作日志",
|
||||
"system:apiLog": "接口日志",
|
||||
|
||||
// 工具
|
||||
devTools: "工具",
|
||||
"setting:module": "模块管理",
|
||||
"setting:code": "代码生成器",
|
||||
"setting:code:update": "编辑生成信息",
|
||||
"setting:crontab": "定时任务",
|
||||
"setting:table": "数据表设计器",
|
||||
systemInterface: "系统接口"
|
||||
}
|
||||
12
chengduTestPlant/src/i18n/zh_CN/skin.js
Normal file
12
chengduTestPlant/src/i18n/zh_CN/skin.js
Normal file
@@ -0,0 +1,12 @@
|
||||
export default {
|
||||
mine: "Mine",
|
||||
businessGray: "商务灰",
|
||||
city: "城市",
|
||||
|
||||
mineDesc: "以纯净的白色为主,Mine默认皮肤",
|
||||
businessGrayDesc: "灰色的百搭与大气,营造商务与稳重",
|
||||
cityDesc: "愿城市每一个角度,都有一份温馨",
|
||||
|
||||
activated: "已激活",
|
||||
use: "使用"
|
||||
}
|
||||
81
chengduTestPlant/src/i18n/zh_CN/sys.js
Normal file
81
chengduTestPlant/src/i18n/zh_CN/sys.js
Normal file
@@ -0,0 +1,81 @@
|
||||
export default {
|
||||
pageSetting: "页面设置",
|
||||
chinese: "简体中文",
|
||||
english: "English",
|
||||
search: "搜索",
|
||||
fullScreen: "全屏",
|
||||
closeFullScreen: "关闭全屏",
|
||||
changeSkin: "换肤",
|
||||
skin: "当前皮肤",
|
||||
layouts: "布局",
|
||||
language: "语言",
|
||||
dark: "黑夜模式",
|
||||
tag: "多标签",
|
||||
menuFold: "菜单折叠",
|
||||
menuWidth: "菜单宽度",
|
||||
skinHelp: "设置后台皮肤",
|
||||
layoutsHelp: "设置后台显示方式",
|
||||
languageHelp: "设置页面语言和请求后台语言",
|
||||
darkHelp: "设置页面显示模式",
|
||||
tagHelp: "是否启用多标签方式",
|
||||
menuFoldHelp: "系统左侧菜单是否折叠起来",
|
||||
menuWidthHelp: "设置左侧菜单的显示宽度",
|
||||
saveToBackend: "保存到后台",
|
||||
backendSettingTitle: "后台设置",
|
||||
systemPrimaryColor: "系统主色调",
|
||||
personalizedConfig: "个性化配置 ",
|
||||
layout: {
|
||||
classic: "经典",
|
||||
columns: "分栏",
|
||||
banner: "通栏"
|
||||
},
|
||||
userCenter: "个人中心",
|
||||
clearCache: "清除缓存",
|
||||
logout: "退出系统",
|
||||
logoutAlert: "退出提示",
|
||||
logoutMessage: "确定要退出登录吗?",
|
||||
operationMessage: {
|
||||
message: "消息",
|
||||
notification: "通知",
|
||||
todo: "待办"
|
||||
},
|
||||
goHome: "回到首页",
|
||||
notFoundPage: "啊哦,访问的页面被火星人劫走了...",
|
||||
login: {
|
||||
slogan: "为测试服务,打造测评高地",
|
||||
title: "登录",
|
||||
username: "账户",
|
||||
usernameNotice: "请输入账户",
|
||||
password: "密码",
|
||||
passwordNotice: "请输入密码",
|
||||
verifyCode: "请输入验证码",
|
||||
verifyCodeNotice: "请输入正确的验证码",
|
||||
loginBtn: "登录",
|
||||
otherLoginType: "可能出现的登录方式"
|
||||
},
|
||||
verifyCode: {
|
||||
switch: "点击切换验证码",
|
||||
error: "验证码错误",
|
||||
notice: "请输入验证码"
|
||||
},
|
||||
i18n: "开启多语言",
|
||||
i18nHelp: "是否开启多语言功能",
|
||||
animation: "切换动画",
|
||||
animationHelp: "工作区页面切换的进场和出场动画效果",
|
||||
animate: {
|
||||
fade: "页面渐隐渐出",
|
||||
sliderLeft: "页面向左渐出",
|
||||
sliderRight: "页面向右渐出",
|
||||
sliderDown: "页面向下渐出",
|
||||
sliderUp: "页面向上渐出"
|
||||
},
|
||||
tags: {
|
||||
refresh: "刷新",
|
||||
fullscreen: "全屏",
|
||||
closeTag: "关闭当前标签",
|
||||
closeOtherTag: "关闭其他标签"
|
||||
},
|
||||
noticeTitle: "系统提示",
|
||||
save: "保存",
|
||||
cancel: "取消"
|
||||
}
|
||||
8
chengduTestPlant/src/i18n/zh_CN/upload.js
Normal file
8
chengduTestPlant/src/i18n/zh_CN/upload.js
Normal file
@@ -0,0 +1,8 @@
|
||||
export default {
|
||||
fileHashFail: "获取文件Hash失败,请重试",
|
||||
sizeLimit: "文件大小超过了限制",
|
||||
uploadFailed: "文件上传失败",
|
||||
buttonText: "本地上传",
|
||||
clickUpload: "点击上传",
|
||||
uploadDesc: "将文件拖到此处,或"
|
||||
}
|
||||
4
chengduTestPlant/src/i18n/zh_CN/user.js
Normal file
4
chengduTestPlant/src/i18n/zh_CN/user.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export default {
|
||||
name: "菜单管理",
|
||||
"system:cache": "系统缓存"
|
||||
}
|
||||
Reference in New Issue
Block a user