国际化支持
This commit is contained in:
68
ruoyi-ui/src/lang/en.js
Normal file
68
ruoyi-ui/src/lang/en.js
Normal file
@@ -0,0 +1,68 @@
|
||||
// en.js
|
||||
export default {
|
||||
login: {
|
||||
title: 'RuoYi Login Form',
|
||||
logIn: 'Login in',
|
||||
username: 'Username',
|
||||
password: 'Password',
|
||||
code: 'Code',
|
||||
rememberMe: 'Remember Me'
|
||||
},
|
||||
tagsView: {
|
||||
refresh: 'Refresh',
|
||||
close: 'Close',
|
||||
closeOthers: 'Close Others',
|
||||
closeAll: 'Close All'
|
||||
},
|
||||
settings: {
|
||||
title: 'Page style setting',
|
||||
theme: 'Theme Color',
|
||||
tagsView: 'Open Tags-View',
|
||||
fixedHeader: 'Fixed Header',
|
||||
sidebarLogo: 'Sidebar Logo'
|
||||
},
|
||||
receiveStockinAdd:{
|
||||
title: 'Add Receive Stockin',
|
||||
warehouse: 'Warehouse',
|
||||
supplier: 'Supplier',
|
||||
remark: 'Remark',
|
||||
InboundMaterials: 'Inbound Materials',
|
||||
AddMaterials: 'Add Materials',
|
||||
ImportMaterials: 'Import Materials',
|
||||
selectWarehouse: 'Please select warehouse',
|
||||
selectSupplier: 'Please select supplier',
|
||||
inputRemark: 'Please input remark',
|
||||
warehouseRequired: 'Please select warehouse',
|
||||
supplierRequired: 'Please select supplier',
|
||||
addMaterialsRequired: 'Please add inbound materials',
|
||||
materialInfoRequired: 'Please fill in correct material information',
|
||||
addSuccess: 'Add stockin successfully',
|
||||
uploadTitle: 'Import Materials',
|
||||
dragText: 'Drag files here, or',
|
||||
clickUpload: 'click to upload',
|
||||
uploadTip: 'Only xlsx and xls files are allowed.',
|
||||
downloadTemplate: 'Download Template',
|
||||
confirm: 'Confirm',
|
||||
cancel: 'Cancel',
|
||||
serialNumber: 'No.',
|
||||
guid: 'GUID',
|
||||
parentId: 'Parent ID',
|
||||
productCode: 'Product Code',
|
||||
productName: 'Product Name',
|
||||
price: 'Price',
|
||||
brand: 'Brand',
|
||||
unit: 'Unit',
|
||||
spec: 'Specification',
|
||||
description: 'Description',
|
||||
batchNumber: 'Batch No.',
|
||||
quantity: 'Quantity',
|
||||
unitPrice: 'Unit Price',
|
||||
amount: 'Amount',
|
||||
operation: 'Operation',
|
||||
delete: 'Delete',
|
||||
totalQuantity: 'Total Quantity',
|
||||
totalAmount: 'Total Amount',
|
||||
submit: 'Submit',
|
||||
selectProduct: 'Select Product'
|
||||
}
|
||||
}
|
||||
29
ruoyi-ui/src/lang/index.js
Normal file
29
ruoyi-ui/src/lang/index.js
Normal file
@@ -0,0 +1,29 @@
|
||||
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 enLocale from './en'
|
||||
import zhLocale from './zh'
|
||||
|
||||
Vue.use(VueI18n)
|
||||
|
||||
const messages = {
|
||||
en_US: {
|
||||
...enLocale,
|
||||
...elementEnLocale
|
||||
},
|
||||
zh_CN: {
|
||||
...zhLocale,
|
||||
...elementZhLocale
|
||||
}
|
||||
}
|
||||
|
||||
const i18n = new VueI18n({
|
||||
// 设置语言 选项 en | zh
|
||||
locale: Cookies.get('language') || 'zh_CN',
|
||||
// 设置文本内容
|
||||
messages
|
||||
})
|
||||
|
||||
export default i18n
|
||||
67
ruoyi-ui/src/lang/zh.js
Normal file
67
ruoyi-ui/src/lang/zh.js
Normal file
@@ -0,0 +1,67 @@
|
||||
export default {
|
||||
login: {
|
||||
title: '若依后台管理系统',
|
||||
logIn: '登录',
|
||||
username: '账号',
|
||||
password: '密码',
|
||||
code: '验证码',
|
||||
rememberMe: '记住密码'
|
||||
},
|
||||
tagsView: {
|
||||
refresh: '刷新',
|
||||
close: '关闭',
|
||||
closeOthers: '关闭其它',
|
||||
closeAll: '关闭所有'
|
||||
},
|
||||
settings: {
|
||||
title: '系统布局配置',
|
||||
theme: '主题色',
|
||||
tagsView: '开启 Tags-View',
|
||||
fixedHeader: '固定 Header',
|
||||
sidebarLogo: '侧边栏 Logo'
|
||||
},
|
||||
receiveStockinAdd:{
|
||||
title: '新增收货单据',
|
||||
warehouse: '仓库',
|
||||
supplier: '供应商',
|
||||
remark: '备注',
|
||||
InboundMaterials: '入库物料',
|
||||
AddMaterials: '添加物料',
|
||||
ImportMaterials: '导入物料',
|
||||
selectWarehouse: '请选择仓库',
|
||||
selectSupplier: '请选择供应商',
|
||||
inputRemark: '请输入备注信息',
|
||||
warehouseRequired: '请选择仓库',
|
||||
supplierRequired: '请选择供应商',
|
||||
addMaterialsRequired: '请添加入库物料',
|
||||
materialInfoRequired: '请填写正确的物料信息',
|
||||
addSuccess: '新增收货单成功',
|
||||
uploadTitle: '物料导入',
|
||||
dragText: '将文件拖到此处,或',
|
||||
clickUpload: '点击上传',
|
||||
uploadTip: '仅允许导入xls、xlsx格式文件。',
|
||||
downloadTemplate: '下载模板',
|
||||
confirm: '确 定',
|
||||
cancel: '取 消',
|
||||
serialNumber: '序号',
|
||||
guid: 'GUID',
|
||||
parentId: '父节点ID',
|
||||
productCode: '物料编码',
|
||||
productName: '物料名称',
|
||||
price: '价格',
|
||||
brand: '品牌',
|
||||
unit: '单位',
|
||||
spec: '规格',
|
||||
description: '描述',
|
||||
batchNumber: '批号',
|
||||
quantity: '数量',
|
||||
unitPrice: '单价',
|
||||
amount: '金额',
|
||||
operation: '操作',
|
||||
delete: '删除',
|
||||
totalQuantity: '总数量',
|
||||
totalAmount: '总金额',
|
||||
submit: '提交',
|
||||
selectProduct: '选择物料'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user