项目初始化
This commit is contained in:
36
ruoyi-ui/src/lang/en.js
Normal file
36
ruoyi-ui/src/lang/en.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import 'core-js/features/symbol'
|
||||
import {status} from 'nprogress'
|
||||
|
||||
export default {
|
||||
login: {
|
||||
title: 'WMS系统',
|
||||
logIn: '登录',
|
||||
username: '账号',
|
||||
password: '密码',
|
||||
code: '验证码',
|
||||
rememberMe: '记住密码',
|
||||
accountLogin: '账号密码登录',
|
||||
},
|
||||
tagsView: {
|
||||
refresh: '刷新',
|
||||
close: '关闭',
|
||||
closeOthers: '关闭其它',
|
||||
closeAll: '关闭所有'
|
||||
},
|
||||
settings: {
|
||||
title: '系统布局配置',
|
||||
theme: '主题色',
|
||||
tagsView: '开启 Tags-View',
|
||||
fixedHeader: '固定 Header',
|
||||
sidebarLogo: '侧边栏 Logo'
|
||||
},
|
||||
top: {
|
||||
layOut: '布局大小',
|
||||
personalCenter: '个人中心',
|
||||
loginOut: '退出登录',
|
||||
logoutTip: '确定退出登录吗?',
|
||||
logoutTitle: '提示',
|
||||
confirm: '确定',
|
||||
cancel: '取消',
|
||||
}
|
||||
}
|
||||
36
ruoyi-ui/src/lang/hu.js
Normal file
36
ruoyi-ui/src/lang/hu.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import 'core-js/features/symbol'
|
||||
import {status} from 'nprogress'
|
||||
|
||||
export default {
|
||||
login: {
|
||||
title: 'WMS系统',
|
||||
logIn: '登录',
|
||||
username: '账号',
|
||||
password: '密码',
|
||||
code: '验证码',
|
||||
rememberMe: '记住密码',
|
||||
accountLogin: '账号密码登录',
|
||||
},
|
||||
tagsView: {
|
||||
refresh: '刷新',
|
||||
close: '关闭',
|
||||
closeOthers: '关闭其它',
|
||||
closeAll: '关闭所有'
|
||||
},
|
||||
settings: {
|
||||
title: '系统布局配置',
|
||||
theme: '主题色',
|
||||
tagsView: '开启 Tags-View',
|
||||
fixedHeader: '固定 Header',
|
||||
sidebarLogo: '侧边栏 Logo'
|
||||
},
|
||||
top: {
|
||||
layOut: '布局大小',
|
||||
personalCenter: '个人中心',
|
||||
loginOut: '退出登录',
|
||||
logoutTip: '确定退出登录吗?',
|
||||
logoutTitle: '提示',
|
||||
confirm: '确定',
|
||||
cancel: '取消',
|
||||
}
|
||||
}
|
||||
35
ruoyi-ui/src/lang/index.js
Normal file
35
ruoyi-ui/src/lang/index.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import Cookies from 'js-cookie'
|
||||
import elementEnLocale from 'element-ui/lib/locale/lang/en' // element-ui lang
|
||||
import elementZhLocale from 'element-ui/lib/locale/lang/zh-CN'// element-ui lang
|
||||
import elementHuLocale from 'element-ui/lib/locale/lang/hu'// element-ui lang
|
||||
import enLocale from './en'
|
||||
import zhLocale from './zh'
|
||||
import huLocale from './hu'
|
||||
|
||||
Vue.use(VueI18n)
|
||||
|
||||
const messages = {
|
||||
en_US: {
|
||||
...enLocale,
|
||||
...elementEnLocale
|
||||
},
|
||||
zh_CN: {
|
||||
...zhLocale,
|
||||
...elementZhLocale
|
||||
},
|
||||
hu:{
|
||||
...huLocale,
|
||||
...elementHuLocale
|
||||
}
|
||||
}
|
||||
|
||||
const i18n = new VueI18n({
|
||||
// 设置语言 选项 en | zh
|
||||
locale: Cookies.get('language') || 'zh_CN'|| 'hu' ,
|
||||
// 设置文本内容
|
||||
messages
|
||||
})
|
||||
|
||||
export default i18n
|
||||
36
ruoyi-ui/src/lang/zh.js
Normal file
36
ruoyi-ui/src/lang/zh.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import 'core-js/features/symbol'
|
||||
import {status} from 'nprogress'
|
||||
|
||||
export default {
|
||||
login: {
|
||||
title: 'WMS系统',
|
||||
logIn: '登录',
|
||||
username: '账号',
|
||||
password: '密码',
|
||||
code: '验证码',
|
||||
rememberMe: '记住密码',
|
||||
accountLogin: '账号密码登录',
|
||||
},
|
||||
tagsView: {
|
||||
refresh: '刷新',
|
||||
close: '关闭',
|
||||
closeOthers: '关闭其它',
|
||||
closeAll: '关闭所有'
|
||||
},
|
||||
settings: {
|
||||
title: '系统布局配置',
|
||||
theme: '主题色',
|
||||
tagsView: '开启 Tags-View',
|
||||
fixedHeader: '固定 Header',
|
||||
sidebarLogo: '侧边栏 Logo'
|
||||
},
|
||||
top: {
|
||||
layOut: '布局大小',
|
||||
personalCenter: '个人中心',
|
||||
loginOut: '退出登录',
|
||||
logoutTip: '确定退出登录吗?',
|
||||
logoutTitle: '提示',
|
||||
confirm: '确定',
|
||||
cancel: '取消',
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user