fix(timesheet): localize week total label

This commit is contained in:
2026-04-29 13:36:51 +03:30
parent 1c97339648
commit 9ed7cb73e2
3 changed files with 10 additions and 8 deletions

View File

@@ -224,6 +224,7 @@ export const en = {
cannotAddSelf: "You are automatically the owner.", cannotAddSelf: "You are automatically the owner.",
}, },
onlyNumbersAllowed: "Only numbers are allowed for mobile number.", onlyNumbersAllowed: "Only numbers are allowed for mobile number.",
weekTotal: "Week Total"
}, },
clients: { clients: {
@@ -408,12 +409,12 @@ export const en = {
runningBadge: "Running", runningBadge: "Running",
noRunningEntry: "No running entry", noRunningEntry: "No running entry",
searchPlaceholder: "Search time entries...", searchPlaceholder: "Search time entries...",
orderingNewest: "Newest first", orderingNewest: "Newest first",
orderingOldest: "Oldest first", orderingOldest: "Oldest first",
emptyState: "No time entries found", emptyState: "No time entries found",
emptyStateDescription: "Start the timer or add a manual entry to get started.", emptyStateDescription: "Start the timer or add a manual entry to get started.",
noEntriesSearch: "Try adjusting your search query or filters.", noEntriesSearch: "Try adjusting your search query or filters.",
emptyDescription: "No description", emptyDescription: "No description",
createTitle: "Add Time Entry", createTitle: "Add Time Entry",
startTitle: "Start Timer", startTitle: "Start Timer",
editTitle: "Edit Time Entry", editTitle: "Edit Time Entry",

View File

@@ -221,6 +221,7 @@ export const fa = {
cannotAddSelf: "شما به‌صورت خودکار مالک هستید.", cannotAddSelf: "شما به‌صورت خودکار مالک هستید.",
}, },
onlyNumbersAllowed: "برای شماره موبایل فقط مجاز به وارد کردن عدد هستید.", onlyNumbersAllowed: "برای شماره موبایل فقط مجاز به وارد کردن عدد هستید.",
weekTotal: "مجموع هفته"
}, },
clients: { clients: {

View File

@@ -2850,7 +2850,7 @@ export default function Timesheet() {
</div> </div>
</div> </div>
<div className="mb-4"> <div className="mb-10">
<TimesheetFilterBar <TimesheetFilterBar
searchQuery={searchQuery} searchQuery={searchQuery}
filters={filters} filters={filters}
@@ -2907,7 +2907,7 @@ export default function Timesheet() {
{formatWeekRange(new Date(`${week.week_start}T00:00:00`), lang)} {formatWeekRange(new Date(`${week.week_start}T00:00:00`), lang)}
</p> </p>
<p className="text-sm text-slate-500 dark:text-slate-400"> <p className="text-sm text-slate-500 dark:text-slate-400">
Week total: <span className="font-semibold text-slate-800 dark:text-slate-100">{formatDurationMs(week.total_ms)}</span> {t.workspace?.weekTotal}: <span className="font-semibold text-slate-800 dark:text-slate-100">{formatDurationMs(week.total_ms)}</span>
</p> </p>
</div> </div>