change moment api

This commit is contained in:
MaysWind
2023-04-22 21:26:42 +08:00
parent 84f3d5fec5
commit 4cad26f793
+1 -1
View File
@@ -187,7 +187,7 @@ function setLanguage(locale) {
} }
i18n.global.locale.value = locale; i18n.global.locale.value = locale;
moment.locale(locale, { moment.updateLocale(locale, {
months : app.config.globalProperties.$locale.getAllLongMonthNames(), months : app.config.globalProperties.$locale.getAllLongMonthNames(),
monthsShort : app.config.globalProperties.$locale.getAllShortMonthNames(), monthsShort : app.config.globalProperties.$locale.getAllShortMonthNames(),
weekdays : app.config.globalProperties.$locale.getAllLongWeekdayNames(), weekdays : app.config.globalProperties.$locale.getAllLongWeekdayNames(),