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
This commit is contained in:
@@ -245,6 +245,7 @@ const {
|
|||||||
getMonthdayShortName,
|
getMonthdayShortName,
|
||||||
getWeekdayLongName,
|
getWeekdayLongName,
|
||||||
getQuarterName,
|
getQuarterName,
|
||||||
|
getCurrencyName,
|
||||||
formatDateTimeToShortDateTime,
|
formatDateTimeToShortDateTime,
|
||||||
formatDateTimeToShortDate,
|
formatDateTimeToShortDate,
|
||||||
formatDateTimeToGregorianLikeShortYear,
|
formatDateTimeToGregorianLikeShortYear,
|
||||||
@@ -487,6 +488,10 @@ function getCategoriedDataDisplayName(info: CategoriedInfo | SeriesInfo): string
|
|||||||
displayName = month ? getMonthLongName(month.name) : tt('Unknown');
|
displayName = month ? getMonthLongName(month.name) : tt('Unknown');
|
||||||
} else if (dimession === TransactionExplorerDataDimension.DateTimeByQuarterOfYear.value) {
|
} else if (dimession === TransactionExplorerDataDimension.DateTimeByQuarterOfYear.value) {
|
||||||
displayName = getQuarterName(parseInt(name));
|
displayName = getQuarterName(parseInt(name));
|
||||||
|
} else if (dimession === TransactionExplorerDataDimension.SourceAccountCurrency.value || dimession === TransactionExplorerDataDimension.DestinationAccountCurrency.value) {
|
||||||
|
if (!needI18n) {
|
||||||
|
displayName = getCurrencyName(name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dimession === TransactionExplorerDataDimension.SourceAmount.value
|
if (dimession === TransactionExplorerDataDimension.SourceAmount.value
|
||||||
|
|||||||
Reference in New Issue
Block a user