fix(i18n): unify shared view states

This commit is contained in:
cesnimda
2026-08-29 23:37:07 +02:00
parent 360b992b37
commit 10ce0f2086
9 changed files with 98 additions and 38 deletions
@@ -146,8 +146,8 @@ export default function DashboardView() {
loadSummary,
{
initialData: { stats: null as JobStats | null, overview: null as OverviewAnalytics | null, reminderJobs: [] as ReminderJob[] },
errorMessage: "Unable to load dashboard summary data right now.",
deps: [],
errorMessage: t("dashboardSummaryUnavailableTitle"),
deps: [t],
},
);
@@ -170,8 +170,8 @@ export default function DashboardView() {
loadTrends,
{
initialData: { analytics: [] as AnalyticsPoint[], tags: [] as TagPoint[], tagTrends: null as TagTrendResponse | null },
errorMessage: "Unable to load dashboard trends right now.",
deps: [months],
errorMessage: t("dashboardTrendsUnavailableTitle"),
deps: [months, t],
},
);