fix the problem that cannot change language in transaction preset category page
This commit is contained in:
+1
-1
@@ -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
@@ -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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user