Commit 7cff1c71 authored by zhuyangbin's avatar zhuyangbin

lang

parent 8bb96a89
export default {
APPRVALA: 'approval'
}
export default {
HELLO: 'hello',
TOTAL: `all $ item`
}
import common from './common'
import approval from './approval'
const wholeObj = Object.assign({}, common, approval)
export default wholeObj
\ No newline at end of file
import en_US from './en_US'
import zh_CN from './zh_CN'
export default function (key) {
// const lang = storage.lang || 'zh_CN'
const lang = 'zh_CN'
let wholeObj = {}
if(lang === 'zh_CN'){
wholeObj = zh_CN
} else if (lang === 'en_US') {
wholeObj = en_US
}
return wholeObj[key] || ''
}
\ No newline at end of file
export default {
APPRVALA: '审批'
}
export default {
HELLO: '你好',
TOTAL: `共$条`
}
import common from './common'
import approval from './approval'
const wholeObj = Object.assign({}, common, approval)
export default 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