From 2f3e26dbe541cf2baecefafe22a57d56afcb3bda Mon Sep 17 00:00:00 2001 From: MaysWind Date: Tue, 30 Dec 2025 00:55:22 +0800 Subject: [PATCH] revise ambiguous content --- src/core/explore.ts | 16 ++++++++++------ src/locales/de.json | 8 ++++++-- src/locales/en.json | 8 ++++++-- src/locales/es.json | 8 ++++++-- src/locales/fr.json | 8 ++++++-- src/locales/it.json | 8 ++++++-- src/locales/ja.json | 8 ++++++-- src/locales/kn.json | 8 ++++++-- src/locales/ko.json | 8 ++++++-- src/locales/nl.json | 8 ++++++-- src/locales/pt_BR.json | 8 ++++++-- src/locales/ru.json | 8 ++++++-- src/locales/th.json | 8 ++++++-- src/locales/tr.json | 8 ++++++-- src/locales/uk.json | 8 ++++++-- src/locales/vi.json | 8 ++++++-- src/locales/zh_Hans.json | 8 ++++++-- src/locales/zh_Hant.json | 8 ++++++-- src/stores/explore.ts | 6 +++--- .../desktop/insights/tabs/ExploreChartTab.vue | 6 +++--- 20 files changed, 118 insertions(+), 46 deletions(-) diff --git a/src/core/explore.ts b/src/core/explore.ts index 51441cc4..fef098be 100644 --- a/src/core/explore.ts +++ b/src/core/explore.ts @@ -171,11 +171,15 @@ export enum TransactionExploreDataDimensionType { None = 'none', Query = 'query', DateTime = 'dateTime', - DateTimeByDay = 'dateTimeByDay', - DateTimeByMonth = 'dateTimeByMonth', - DateTimeByQuarter = 'dateTimeByQuarter', + DateTimeByYearMonthDay = 'dateTimeByYearMonthDay', + DateTimeByYearMonth = 'dateTimeByYearMonth', + DateTimeByYearQuarter = 'dateTimeByYearQuarter', DateTimeByYear = 'dateTimeByYear', DateTimeByFiscalYear = 'dateTimeByFiscalYear', + DateTimeByDayOfWeek = 'dateTimeByDayOfWeek', + DateTimeByDayOfMonth = 'dateTimeByDayOfMonth', + DateTimeByMonthOfYear = 'dateTimeByMonthOfYear', + DateTimeByQuarterOfYear = 'dateTimeByQuarterOfYear', TransactionType = 'transactionType', SourceAccount = 'sourceAccount', SourceAccountCategory = 'sourceAccountCategory', @@ -196,9 +200,9 @@ export class TransactionExploreDataDimension implements NameValue { public static readonly None = new TransactionExploreDataDimension('None', TransactionExploreDataDimensionType.None); public static readonly Query = new TransactionExploreDataDimension('Query', TransactionExploreDataDimensionType.Query); public static readonly DateTime = new TransactionExploreDataDimension('Transaction Time', TransactionExploreDataDimensionType.DateTime); - public static readonly DateTimeByDay = new TransactionExploreDataDimension('Transaction Date', TransactionExploreDataDimensionType.DateTimeByDay); - public static readonly DateTimeByMonth = new TransactionExploreDataDimension('Transaction Month', TransactionExploreDataDimensionType.DateTimeByMonth); - public static readonly DateTimeByQuarter = new TransactionExploreDataDimension('Transaction Quarter', TransactionExploreDataDimensionType.DateTimeByQuarter); + public static readonly DateTimeByYearMonthDay = new TransactionExploreDataDimension('Transaction Date', TransactionExploreDataDimensionType.DateTimeByYearMonthDay); + public static readonly DateTimeByYearMonth = new TransactionExploreDataDimension('Transaction Year-Month', TransactionExploreDataDimensionType.DateTimeByYearMonth); + public static readonly DateTimeByYearQuarter = new TransactionExploreDataDimension('Transaction Year-Quarter', TransactionExploreDataDimensionType.DateTimeByYearQuarter); public static readonly DateTimeByYear = new TransactionExploreDataDimension('Transaction Year', TransactionExploreDataDimensionType.DateTimeByYear); public static readonly DateTimeByFiscalYear = new TransactionExploreDataDimension('Transaction Fiscal Year', TransactionExploreDataDimensionType.DateTimeByFiscalYear); public static readonly TransactionType = new TransactionExploreDataDimension('Transaction Type', TransactionExploreDataDimensionType.TransactionType); diff --git a/src/locales/de.json b/src/locales/de.json index b8b89d4c..48e32f1c 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/en.json b/src/locales/en.json index b85bbc0a..e2321216 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/es.json b/src/locales/es.json index 3ee769ff..9f8de745 100644 --- a/src/locales/es.json +++ b/src/locales/es.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/fr.json b/src/locales/fr.json index e9b54745..52981e5e 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/it.json b/src/locales/it.json index 18c30396..6438d4f9 100644 --- a/src/locales/it.json +++ b/src/locales/it.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/ja.json b/src/locales/ja.json index e8b9dc55..a06142fe 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/kn.json b/src/locales/kn.json index 28c3e827..d8d0702c 100644 --- a/src/locales/kn.json +++ b/src/locales/kn.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/ko.json b/src/locales/ko.json index ab3ddbca..0022f086 100644 --- a/src/locales/ko.json +++ b/src/locales/ko.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/nl.json b/src/locales/nl.json index 2a272af9..e2e6ebeb 100644 --- a/src/locales/nl.json +++ b/src/locales/nl.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/pt_BR.json b/src/locales/pt_BR.json index ceeffd6b..49418e5a 100644 --- a/src/locales/pt_BR.json +++ b/src/locales/pt_BR.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/ru.json b/src/locales/ru.json index b4dc602e..1d65d578 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/th.json b/src/locales/th.json index 57e6e7e0..9bb3a05f 100644 --- a/src/locales/th.json +++ b/src/locales/th.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/tr.json b/src/locales/tr.json index dc933f75..211298c5 100644 --- a/src/locales/tr.json +++ b/src/locales/tr.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/uk.json b/src/locales/uk.json index 0db65c9b..f7996b4c 100644 --- a/src/locales/uk.json +++ b/src/locales/uk.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/vi.json b/src/locales/vi.json index ae64b9b5..be483bab 100644 --- a/src/locales/vi.json +++ b/src/locales/vi.json @@ -1717,10 +1717,14 @@ "Axis / Category": "Axis / Category", "Series": "Series", "Transaction Date": "Transaction Date", - "Transaction Month": "Transaction Month", - "Transaction Quarter": "Transaction Quarter", + "Transaction Year-Month": "Transaction Year-Month", + "Transaction Year-Quarter": "Transaction Year-Quarter", "Transaction Year": "Transaction Year", "Transaction Fiscal Year": "Transaction Fiscal Year", + "Transaction Day of Week": "Transaction Day of Week", + "Transaction Day of Month": "Transaction Day of Month", + "Transaction Month of Year": "Transaction Month of Year", + "Transaction Quarter of Year": "Transaction Quarter of Year", "Source Account Category": "Source Account Category", "Source Account Currency": "Source Account Currency", "Destination Account Category": "Destination Account Category", diff --git a/src/locales/zh_Hans.json b/src/locales/zh_Hans.json index 6a462ee0..518c6cac 100644 --- a/src/locales/zh_Hans.json +++ b/src/locales/zh_Hans.json @@ -1717,10 +1717,14 @@ "Axis / Category": "轴 / 分类", "Series": "系列", "Transaction Date": "交易日期", - "Transaction Month": "交易月份", - "Transaction Quarter": "交易季度", + "Transaction Year-Month": "交易年月", + "Transaction Year-Quarter": "交易年季度", "Transaction Year": "交易年份", "Transaction Fiscal Year": "交易财年", + "Transaction Day of Week": "交易周内日", + "Transaction Day of Month": "交易月内日", + "Transaction Month of Year": "交易月份", + "Transaction Quarter of Year": "交易季度", "Source Account Category": "来源账户分类", "Source Account Currency": "来源账户货币", "Destination Account Category": "目标账户分类", diff --git a/src/locales/zh_Hant.json b/src/locales/zh_Hant.json index e906052b..aa0563ff 100644 --- a/src/locales/zh_Hant.json +++ b/src/locales/zh_Hant.json @@ -1717,10 +1717,14 @@ "Axis / Category": "軸 / 類別", "Series": "系列", "Transaction Date": "交易日期", - "Transaction Month": "交易月份", - "Transaction Quarter": "交易季度", + "Transaction Year-Month": "交易年月", + "Transaction Year-Quarter": "交易年季度", "Transaction Year": "交易年份", "Transaction Fiscal Year": "交易財政年度", + "Transaction Day of Week": "交易周内日", + "Transaction Day of Month": "交易月內日", + "Transaction Month of Year": "交易月份", + "Transaction Quarter of Year": "交易季度", "Source Account Category": "來源帳戶分類", "Source Account Currency": "來源帳戶貨幣", "Destination Account Category": "目標帳戶分類", diff --git a/src/stores/explore.ts b/src/stores/explore.ts index 3b91c007..12eb1505 100644 --- a/src/stores/explore.ts +++ b/src/stores/explore.ts @@ -156,7 +156,7 @@ export const useExploresStore = defineStore('explores', () => { categoryId: unixTime, categoryIdType: TransactionExploreDimensionType.Other }; - } else if (dimension === TransactionExploreDataDimension.DateTimeByDay) { + } else if (dimension === TransactionExploreDataDimension.DateTimeByYearMonthDay) { const unixTime = getDayFirstUnixTimeBySpecifiedUnixTime(transaction.time).toString(10); return { @@ -164,7 +164,7 @@ export const useExploresStore = defineStore('explores', () => { categoryId: unixTime, categoryIdType: TransactionExploreDimensionType.Other }; - } else if (dimension === TransactionExploreDataDimension.DateTimeByMonth) { + } else if (dimension === TransactionExploreDataDimension.DateTimeByYearMonth) { const unixTime = getMonthFirstUnixTimeBySpecifiedUnixTime(transaction.time).toString(10); return { @@ -172,7 +172,7 @@ export const useExploresStore = defineStore('explores', () => { categoryId: unixTime, categoryIdType: TransactionExploreDimensionType.Other }; - } else if (dimension === TransactionExploreDataDimension.DateTimeByQuarter) { + } else if (dimension === TransactionExploreDataDimension.DateTimeByYearQuarter) { const unixTime = getQuarterFirstUnixTimeBySpecifiedUnixTime(transaction.time).toString(10); return { diff --git a/src/views/desktop/insights/tabs/ExploreChartTab.vue b/src/views/desktop/insights/tabs/ExploreChartTab.vue index d261fb73..c3c8d60c 100644 --- a/src/views/desktop/insights/tabs/ExploreChartTab.vue +++ b/src/views/desktop/insights/tabs/ExploreChartTab.vue @@ -259,11 +259,11 @@ function getCategoriedDataDisplayName(info: CategoriedInfo | SeriesedInfo): stri // convert the name to formatted date time if needed if (dimessionType === TransactionExploreDataDimension.DateTime.value) { displayName = formatDateTimeToShortDateTime(parseDateTimeFromUnixTime(parseInt(name))); - } else if (dimessionType === TransactionExploreDataDimension.DateTimeByDay.value) { + } else if (dimessionType === TransactionExploreDataDimension.DateTimeByYearMonthDay.value) { displayName = formatDateTimeToShortDate(parseDateTimeFromUnixTime(parseInt(name))); - } else if (dimessionType === TransactionExploreDataDimension.DateTimeByMonth.value) { + } else if (dimessionType === TransactionExploreDataDimension.DateTimeByYearMonth.value) { displayName = formatDateTimeToGregorianLikeShortYearMonth(parseDateTimeFromUnixTime(parseInt(name))); - } else if (dimessionType === TransactionExploreDataDimension.DateTimeByQuarter.value) { + } else if (dimessionType === TransactionExploreDataDimension.DateTimeByYearQuarter.value) { displayName = formatDateTimeToGregorianLikeYearQuarter(parseDateTimeFromUnixTime(parseInt(name))); } else if (dimessionType === TransactionExploreDataDimension.DateTimeByYear.value) { displayName = formatDateTimeToGregorianLikeShortYear(parseDateTimeFromUnixTime(parseInt(name)));