From 44eb63c0c899b6239f50e54cc243053a304d1183 Mon Sep 17 00:00:00 2001 From: zhuyangbin Date: Tue, 25 Feb 2020 16:46:16 +0800 Subject: [PATCH] update --- utils/lang/index.js | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/utils/lang/index.js b/utils/lang/index.js index a6bd882..477f9f1 100644 --- a/utils/lang/index.js +++ b/utils/lang/index.js @@ -1,17 +1,18 @@ -import en_US from './en_US' -import zh_CN from './zh_CN' +import en_US from './en_US'; +import zh_CN from './zh_CN'; export default function (key) { + // 333 // 111 // const lang = storage.lang || 'zh_CN' - const lang = 'zh_CN' - let wholeObj = {} + const lang = 'zh_CN'; + let wholeObj = {}; - if(lang === 'zh_CN'){ - wholeObj = zh_CN + if (lang === 'zh_CN') { + wholeObj = zh_CN; } else if (lang === 'en_US') { - wholeObj = en_US + wholeObj = en_US; } - - return wholeObj[key] || '' -} \ No newline at end of file + + return wholeObj[key] || ''; +} -- 2.21.0