fix the problem that cannot change language in transaction preset category page

This commit is contained in:
MaysWind
2023-04-22 21:50:08 +08:00
parent 4cad26f793
commit ee2690c2cc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -361,7 +361,7 @@ export function getDisplayCurrency(value, currencyCode, notConvertValue, transla
export function getI18nOptions() { export function getI18nOptions() {
return { return {
legacy: false, legacy: true,
locale: defaultLanguage, locale: defaultLanguage,
fallbackLocale: defaultLanguage, fallbackLocale: defaultLanguage,
formatFallbackMessages: true, formatFallbackMessages: true,
+1 -1
View File
@@ -186,7 +186,7 @@ function setLanguage(locale) {
settings.setLanguage(locale); settings.setLanguage(locale);
} }
i18n.global.locale.value = locale; i18n.global.locale = locale;
moment.updateLocale(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(),