浏览代码

Merge branch 'master' of http://47.100.37.243:10080/wutt/manHourHousekeeper into master

seyason 2 年之前
父节点
当前提交
66c2b8c18b
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      fhKeeper/formulahousekeeper/timesheet/src/day.js

+ 6 - 1
fhKeeper/formulahousekeeper/timesheet/src/day.js

@@ -9,7 +9,12 @@ import relativeTime from 'dayjs/plugin/relativeTime'
 dayjs.extend(relativeTime)
 dayjs.extend(relativeTime)
 
 
 // 配置使用中文语言包
 // 配置使用中文语言包
-dayjs.locale('zh-cn')
+if(localStorage.getItem('lang') == 'zh') {
+  dayjs.locale('zh-cn')
+} else {
+  dayjs.locale('en')
+}
+
 
 
 console.log(dayjs().format('YYYY-MM-DD'));
 console.log(dayjs().format('YYYY-MM-DD'));