diff --git a/components/Locales/en_US/approval.js b/components/Locales/en_US/approval.js deleted file mode 100644 index 9488030745f3a33b39840b8b82b36b653471ed8a..0000000000000000000000000000000000000000 --- a/components/Locales/en_US/approval.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function (params) { - return { - APPRVALA: 'approval' - } -} \ No newline at end of file diff --git a/components/Locales/en_US/common.js b/components/Locales/en_US/common.js deleted file mode 100644 index 0b9771f231ec93527b4f4772551c3b1a6af95892..0000000000000000000000000000000000000000 --- a/components/Locales/en_US/common.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function (params) { - return { - HELLO: 'hello' - } -} \ No newline at end of file diff --git a/components/Locales/en_US/index.js b/components/Locales/en_US/index.js deleted file mode 100644 index 03342508ccc275c89b3f020e3d02407b0b10f181..0000000000000000000000000000000000000000 --- a/components/Locales/en_US/index.js +++ /dev/null @@ -1,10 +0,0 @@ -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 diff --git a/components/Locales/index.js b/components/Locales/index.js deleted file mode 100644 index d59120964bb1aeaf4b3d793cc45747ff12f39452..0000000000000000000000000000000000000000 --- a/components/Locales/index.js +++ /dev/null @@ -1,16 +0,0 @@ -import en_US from './en_US' -import zh_CN from './zh_CN' -// zzzz -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 diff --git a/components/Locales/zh_CN/approval.js b/components/Locales/zh_CN/approval.js deleted file mode 100644 index 775a86d7e24fd088a470646b479e183c9d51275b..0000000000000000000000000000000000000000 --- a/components/Locales/zh_CN/approval.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function (params) { - return { - APPRVALA: '审批' - } -} \ No newline at end of file diff --git a/components/Locales/zh_CN/common.js b/components/Locales/zh_CN/common.js deleted file mode 100644 index 47a930dce7b9e2a8bc56bbda88730ef66ae7b5b5..0000000000000000000000000000000000000000 --- a/components/Locales/zh_CN/common.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function (params) { - return { - HELLO: '你好', - TOTAL: `共${params}条` - } -} \ No newline at end of file diff --git a/components/Locales/zh_CN/index.js b/components/Locales/zh_CN/index.js deleted file mode 100644 index 03342508ccc275c89b3f020e3d02407b0b10f181..0000000000000000000000000000000000000000 --- a/components/Locales/zh_CN/index.js +++ /dev/null @@ -1,10 +0,0 @@ -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