From 1a65bb9db65a6a70fb18c8558a50e22485d33995 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Wed, 18 Mar 2026 00:11:55 +0800 Subject: [PATCH] display the currency name instead of the currency code when using the source account currency or destination account currency as the axis, category or series in insights explorer --- src/views/desktop/insights/tabs/ExplorerChartTab.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/desktop/insights/tabs/ExplorerChartTab.vue b/src/views/desktop/insights/tabs/ExplorerChartTab.vue index a9481394..0d4a345b 100644 --- a/src/views/desktop/insights/tabs/ExplorerChartTab.vue +++ b/src/views/desktop/insights/tabs/ExplorerChartTab.vue @@ -245,6 +245,7 @@ const { getMonthdayShortName, getWeekdayLongName, getQuarterName, + getCurrencyName, formatDateTimeToShortDateTime, formatDateTimeToShortDate, formatDateTimeToGregorianLikeShortYear, @@ -487,6 +488,10 @@ function getCategoriedDataDisplayName(info: CategoriedInfo | SeriesInfo): string displayName = month ? getMonthLongName(month.name) : tt('Unknown'); } else if (dimession === TransactionExplorerDataDimension.DateTimeByQuarterOfYear.value) { displayName = getQuarterName(parseInt(name)); + } else if (dimession === TransactionExplorerDataDimension.SourceAccountCurrency.value || dimession === TransactionExplorerDataDimension.DestinationAccountCurrency.value) { + if (!needI18n) { + displayName = getCurrencyName(name); + } } if (dimession === TransactionExplorerDataDimension.SourceAmount.value