Explorar o código

跳转days插件转译

Lijy %!s(int64=2) %!d(string=hai) anos
pai
achega
4e7dc92f5f
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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'));