Parcourir la source

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

seyason il y a 2 ans
Parent
commit
66c2b8c18b
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  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.locale('zh-cn')
+if(localStorage.getItem('lang') == 'zh') {
+  dayjs.locale('zh-cn')
+} else {
+  dayjs.locale('en')
+}
+
 
 console.log(dayjs().format('YYYY-MM-DD'));