Commit 989f979c authored by zhuyangbin's avatar zhuyangbin

国际化

parent cd141e06
File added
export default function (params) {
return {
APPRVALA: 'approval'
}
}
\ No newline at end of file
export default function (params) {
return {
HELLO: 'hello'
}
}
\ No newline at end of file
import common from './common'
import approval from './approval'
export default function (params) {
const commonObj = common(params)
const approvalObj = approval(params)
const wholeObj = Object.assign({}, commonObj, approvalObj)
return wholeObj
}
\ No newline at end of file
import en_US from './en_US'
import zh_CN from './zh_CN'
export default function (key, params) {
// const lang = storage.lang || 'zh_CN'
const lang = 'zh_CN'
let wholeObj = {}
if(lang === 'zh_CN'){
wholeObj = zh_CN(params)
} else if (lang === 'en_US') {
wholeObj = en_US(params)
}
return wholeObj[key] || ''
}
\ No newline at end of file
export default function (params) {
return {
APPRVALA: '审批'
}
}
\ No newline at end of file
export default function (params) {
return {
HELLO: '你好',
TOTAL: `共${params}条`
}
}
\ No newline at end of file
import common from './common'
import approval from './approval'
export default function (params) {
const commonObj = common(params)
const approvalObj = approval(params)
const wholeObj = Object.assign({}, commonObj, approvalObj)
return wholeObj
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment