diff --git a/frontend/src/components/DashboardGrid.svelte b/frontend/src/components/DashboardGrid.svelte index a62b7c08..c7f670c3 100644 --- a/frontend/src/components/DashboardGrid.svelte +++ b/frontend/src/components/DashboardGrid.svelte @@ -15,11 +15,11 @@ -
+
{#if loading} -
-
-
-
+
+ {#each Array(5) as _, i (i)} +
+ {/each}
{:else if error} -
-

{$t.health?.load_failed}

-

{error}

+
+

{$t.health?.load_failed || 'Failed to load health data'}

+

{error}

{:else} -
-
-
🟢 {pass_count}
-
{$t.health?.status_pass}
-
- -
-
🟡 {warn_count}
-
{$t.health?.status_warn}
-
- -
-
🔴 {fail_count}
-
{$t.health?.status_fail}
-
+
+ + -
-
⚪ {unknown_count}
-
{$t.health?.status_unknown}
-
+ + + + + + + + + + +
- + {#if total === 0} -
- {$t.health?.no_records_for_environment} +
+ + + +

{$t.health?.no_records_for_environment || 'No validation records for this environment'}

{/if} {/if}
- - diff --git a/frontend/src/lib/components/health/ScheduleAtAGlance.svelte b/frontend/src/lib/components/health/ScheduleAtAGlance.svelte index a69b83c8..ed3f5d47 100644 --- a/frontend/src/lib/components/health/ScheduleAtAGlance.svelte +++ b/frontend/src/lib/components/health/ScheduleAtAGlance.svelte @@ -19,7 +19,7 @@ import { SvelteSet } from 'svelte/reactivity'; import { goto } from '$app/navigation'; import { getValidationTasks as fetchTasks } from '$lib/api.js'; - import { t } from '$lib/i18n'; + import { t } from '$lib/i18n/index.svelte.js'; /** @type {{ healthItems: Array<{task_id?: string, status: string}>, selectedEnvId?: string, appTimezone?: string }} */ let { diff --git a/frontend/src/lib/components/layout/Breadcrumbs.svelte b/frontend/src/lib/components/layout/Breadcrumbs.svelte index 9958eb0e..184099ae 100644 --- a/frontend/src/lib/components/layout/Breadcrumbs.svelte +++ b/frontend/src/lib/components/layout/Breadcrumbs.svelte @@ -20,16 +20,14 @@ */ import { page } from "$app/state"; - import { fromStore } from "svelte/store"; - import { t, _ } from "$lib/i18n"; + import { t, _ } from "$lib/i18n/index.svelte.js"; import Icon from "$lib/ui/Icon.svelte"; let { maxVisible = 3 } = $props(); - const translationState = fromStore(t); // Breadcrumb items derived from current path let breadcrumbItems = $derived( - getBreadcrumbs(page.url.pathname || "/", maxVisible, translationState.current), + getBreadcrumbs(page.url.pathname || "/", maxVisible, t), ); /** @@ -150,7 +148,7 @@