Ver Fonte

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

seyason há 2 anos atrás
pai
commit
66c2b8c18b
1 ficheiros alterados com 6 adições e 1 exclusões
  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'));