mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 02:04:26 +08:00
change moment api
This commit is contained in:
+1
-1
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user