From 9ed7cb73e2eaa1d359d889d13cdfd8e1f45be1de Mon Sep 17 00:00:00 2001 From: Amirhossein Khalili Date: Wed, 29 Apr 2026 13:36:51 +0330 Subject: [PATCH] fix(timesheet): localize week total label --- src/locales/en.ts | 13 +++++++------ src/locales/fa.ts | 1 + src/pages/Timesheet.tsx | 4 ++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/locales/en.ts b/src/locales/en.ts index df3a35c..534af36 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -224,6 +224,7 @@ export const en = { cannotAddSelf: "You are automatically the owner.", }, onlyNumbersAllowed: "Only numbers are allowed for mobile number.", + weekTotal: "Week Total" }, clients: { @@ -408,12 +409,12 @@ export const en = { runningBadge: "Running", noRunningEntry: "No running entry", searchPlaceholder: "Search time entries...", - orderingNewest: "Newest first", - orderingOldest: "Oldest first", - emptyState: "No time entries found", - emptyStateDescription: "Start the timer or add a manual entry to get started.", - noEntriesSearch: "Try adjusting your search query or filters.", - emptyDescription: "No description", + orderingNewest: "Newest first", + orderingOldest: "Oldest first", + emptyState: "No time entries found", + emptyStateDescription: "Start the timer or add a manual entry to get started.", + noEntriesSearch: "Try adjusting your search query or filters.", + emptyDescription: "No description", createTitle: "Add Time Entry", startTitle: "Start Timer", editTitle: "Edit Time Entry", diff --git a/src/locales/fa.ts b/src/locales/fa.ts index d194758..4590cf8 100644 --- a/src/locales/fa.ts +++ b/src/locales/fa.ts @@ -221,6 +221,7 @@ export const fa = { cannotAddSelf: "شما به‌صورت خودکار مالک هستید.", }, onlyNumbersAllowed: "برای شماره موبایل فقط مجاز به وارد کردن عدد هستید.", + weekTotal: "مجموع هفته" }, clients: { diff --git a/src/pages/Timesheet.tsx b/src/pages/Timesheet.tsx index 4696294..f8e8ae3 100644 --- a/src/pages/Timesheet.tsx +++ b/src/pages/Timesheet.tsx @@ -2850,7 +2850,7 @@ export default function Timesheet() { -
+

- Week total: {formatDurationMs(week.total_ms)} + {t.workspace?.weekTotal}: {formatDurationMs(week.total_ms)}