diff --git a/src/components/desktop/AccountBalanceTrendsChart.vue b/src/components/desktop/AccountBalanceTrendsChart.vue index d85fd8db..52a498b7 100644 --- a/src/components/desktop/AccountBalanceTrendsChart.vue +++ b/src/components/desktop/AccountBalanceTrendsChart.vue @@ -20,7 +20,7 @@ import { type NameNumeralValue, itemAndIndex } from '@/core/base.ts'; import { TextDirection } from '@/core/text.ts'; import type { ColorStyleValue } from '@/core/color.ts'; import { ThemeType } from '@/core/theme.ts'; -import { AccountBalanceTrendChartType } from '@/core/statistics.ts'; +import { AccountBalanceTrendChartType, ChartDateAggregationType } from '@/core/statistics.ts'; import { DEFAULT_CHART_COLORS } from '@/consts/color.ts'; import { isArray } from '@/lib/common.ts'; @@ -241,7 +241,17 @@ const chartOptions = computed(() => { } if (periodOverPeriodDataItemDisplayItems && periodOverPeriodDataItemDisplayItems.length) { - tooltip += `${tt('Period-over-Period')}`; + let periodOverPeriodText = tt('Period-over-Period'); + + if (props.dateAggregationType === ChartDateAggregationType.Quarter.type) { + periodOverPeriodText = tt('Quarter-over-Quarter'); + } else if (props.dateAggregationType === ChartDateAggregationType.Month.type) { + periodOverPeriodText = tt('Month-over-Month'); + } else if (props.dateAggregationType === ChartDateAggregationType.Day.type) { + periodOverPeriodText = tt('Day-over-Day'); + } + + tooltip += `${periodOverPeriodText}`; } tooltip += ''; diff --git a/src/components/desktop/TrendsChart.vue b/src/components/desktop/TrendsChart.vue index 43c36b41..4f2678b4 100644 --- a/src/components/desktop/TrendsChart.vue +++ b/src/components/desktop/TrendsChart.vue @@ -121,7 +121,15 @@ const allTooltipExtraColumnNames = computed(() => { } if (props.showPeriodOverPeriod) { - extraColumnNames.push(tt('Period-over-Period')); + if (props.dateAggregationType === ChartDateAggregationType.Quarter.type) { + extraColumnNames.push(tt('Quarter-over-Quarter')); + } else if (props.dateAggregationType === ChartDateAggregationType.Month.type) { + extraColumnNames.push(tt('Month-over-Month')); + } else if (props.dateAggregationType === ChartDateAggregationType.Day.type && props.chartMode === 'daily') { + extraColumnNames.push(tt('Day-over-Day')); + } else { + extraColumnNames.push(tt('Period-over-Period')); + } } return extraColumnNames; diff --git a/src/locales/de.json b/src/locales/de.json index 4634e3a7..e33160a8 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "Nach Geschäftsjahr aggregieren", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Jahresvergleich", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Periodenvergleich", "Filter Accounts": "Konten filtern", "Filter Transaction Categories": "Transaktionskategorien filtern", diff --git a/src/locales/en.json b/src/locales/en.json index f14321f0..d3655cfe 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "Aggregate by Fiscal Year", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "Filter Accounts", "Filter Transaction Categories": "Filter Transaction Categories", diff --git a/src/locales/es.json b/src/locales/es.json index deb3f5cb..76d545e9 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "Agregado por Año Fiscal", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "Filtrar cuentas", "Filter Transaction Categories": "Filtrar categorías de transacciones", diff --git a/src/locales/fr.json b/src/locales/fr.json index f6ff450a..ef6a31f0 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "Agréger par année fiscale", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "Filtrer les comptes", "Filter Transaction Categories": "Filtrer les catégories de transaction", diff --git a/src/locales/it.json b/src/locales/it.json index 408da31e..fde88a6b 100644 --- a/src/locales/it.json +++ b/src/locales/it.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "Aggregate by Fiscal Year", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "Filtra conti", "Filter Transaction Categories": "Filtra categorie transazione", diff --git a/src/locales/ja.json b/src/locales/ja.json index d43c98d9..745d9cc8 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "Aggregate by Fiscal Year", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "口座で絞り込み", "Filter Transaction Categories": "取引カテゴリで絞り込み", diff --git a/src/locales/kn.json b/src/locales/kn.json index 64df56e6..a79e98d9 100644 --- a/src/locales/kn.json +++ b/src/locales/kn.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "ಹಣಕಾಸು ವರ್ಷವಾರು ಒಕ್ಕೂಟ", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "ಖಾತೆಗಳನ್ನು ಫಿಲ್ಟರ್ ಮಾಡಿ", "Filter Transaction Categories": "ವಹಿವಾಟು ವರ್ಗಗಳನ್ನು ಫಿಲ್ಟರ್ ಮಾಡಿ", diff --git a/src/locales/ko.json b/src/locales/ko.json index 686ef21d..aecb8f91 100644 --- a/src/locales/ko.json +++ b/src/locales/ko.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "회계 연도별 집계", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "계좌 필터", "Filter Transaction Categories": "거래 범주 필터", diff --git a/src/locales/nl.json b/src/locales/nl.json index f55dad3d..28ad4b59 100644 --- a/src/locales/nl.json +++ b/src/locales/nl.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "Groeperen per boekjaar", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "Rekeningen filteren", "Filter Transaction Categories": "Transactiecategorieën filteren", diff --git a/src/locales/pt_BR.json b/src/locales/pt_BR.json index 9ff8856b..fc617095 100644 --- a/src/locales/pt_BR.json +++ b/src/locales/pt_BR.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "Agregar por Ano Fiscal", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "Filtrar Contas", "Filter Transaction Categories": "Filtrar Categorias de Transações", diff --git a/src/locales/ru.json b/src/locales/ru.json index 72477a04..4fe2771f 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "Агрегировать по фискальным годам", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "Фильтровать счета", "Filter Transaction Categories": "Фильтровать категории транзакций", diff --git a/src/locales/sl.json b/src/locales/sl.json index b922ac47..dd5faa5d 100644 --- a/src/locales/sl.json +++ b/src/locales/sl.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "Združi po fiskalnih letih", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "Filtriraj račune", "Filter Transaction Categories": "Filtriraj kategorije transakcij", diff --git a/src/locales/ta.json b/src/locales/ta.json index 1755ed55..d7eae1ec 100644 --- a/src/locales/ta.json +++ b/src/locales/ta.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "நிதி ஆண்டுவாரி கூட்டமைப்பு", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "கணக்குகளை வடிகட்டி செய்", "Filter Transaction Categories": "பரிவர்த்தனை வகைகளை வடிகட்டி செய்", diff --git a/src/locales/th.json b/src/locales/th.json index dc8cdf6d..d83b3959 100644 --- a/src/locales/th.json +++ b/src/locales/th.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "รวมตามปีงบประมาณ", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "กรองบัญชี", "Filter Transaction Categories": "กรองหมวดรายการ", diff --git a/src/locales/tr.json b/src/locales/tr.json index e648ac59..ce73daff 100644 --- a/src/locales/tr.json +++ b/src/locales/tr.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "Mali Yıla Göre Topla", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "Hesapları Filtrele", "Filter Transaction Categories": "İşlem Kategorilerini Filtrele", diff --git a/src/locales/uk.json b/src/locales/uk.json index 4da1933f..051d83b1 100644 --- a/src/locales/uk.json +++ b/src/locales/uk.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "Aggregate by Fiscal Year", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "Фільтрувати рахунки", "Filter Transaction Categories": "Фільтрувати категорії транзакцій", diff --git a/src/locales/vi.json b/src/locales/vi.json index 02d62201..f373f432 100644 --- a/src/locales/vi.json +++ b/src/locales/vi.json @@ -2216,6 +2216,9 @@ "Aggregate by Fiscal Year": "Aggregate by Fiscal Year", "Aggregate by Billing Cycle": "Aggregate by Billing Cycle", "Year-over-Year": "Year-over-Year", + "Quarter-over-Quarter": "Quarter-over-Quarter", + "Month-over-Month": "Month-over-Month", + "Day-over-Day": "Day-over-Day", "Period-over-Period": "Period-over-Period", "Filter Accounts": "Lọc tài khoản", "Filter Transaction Categories": "Lọc danh mục giao dịch", diff --git a/src/locales/zh_Hans.json b/src/locales/zh_Hans.json index a03d1917..048ea43f 100644 --- a/src/locales/zh_Hans.json +++ b/src/locales/zh_Hans.json @@ -2215,7 +2215,10 @@ "Aggregate by Year": "按年聚合", "Aggregate by Fiscal Year": "按财年聚合", "Aggregate by Billing Cycle": "按账单周期聚合", - "Year-over-Year": "同比", + "Year-over-Year": "年同比", + "Quarter-over-Quarter": "季环比", + "Month-over-Month": "月环比", + "Day-over-Day": "日环比", "Period-over-Period": "环比", "Filter Accounts": "过滤账户", "Filter Transaction Categories": "过滤交易分类", diff --git a/src/locales/zh_Hant.json b/src/locales/zh_Hant.json index a3349a8c..2e24f7a9 100644 --- a/src/locales/zh_Hant.json +++ b/src/locales/zh_Hant.json @@ -2215,7 +2215,10 @@ "Aggregate by Year": "依年份彙整", "Aggregate by Fiscal Year": "依財年彙整", "Aggregate by Billing Cycle": "依帳單週期彙整", - "Year-over-Year": "同比", + "Year-over-Year": "年同比", + "Quarter-over-Quarter": "季環比", + "Month-over-Month": "月環比", + "Day-over-Day": "日環比", "Period-over-Period": "環比", "Filter Accounts": "篩選帳戶", "Filter Transaction Categories": "篩選交易分類",