From b5e104c9e89005f0754a11455f9a251082eaf4dd Mon Sep 17 00:00:00 2001 From: busya Date: Wed, 3 Jun 2026 10:52:47 +0300 Subject: [PATCH] fix(frontend): replace t Proxy with _ function in ValidationRunDetailPage The export from i18n is a Proxy that supports property access (t.dashboard) and .subscribe(), but is NOT callable as t(key). Passing it as a function argument to getPathLabel() and getTriggerLabel() caused: TypeError: tFn is not a function at getPathLabel Fix: import the callable translation function (key: string) => string and pass that instead. The import is kept for template usage (t.nav?.home). @RATIONALE Svelte 5 i18n Proxy () supports property access but not function calls. The function is the correct callable formatter. --- .../validation-tasks/[policyId]/runs/[runId]/+page.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/routes/validation-tasks/[policyId]/runs/[runId]/+page.svelte b/frontend/src/routes/validation-tasks/[policyId]/runs/[runId]/+page.svelte index 7588f709..569b03ec 100644 --- a/frontend/src/routes/validation-tasks/[policyId]/runs/[runId]/+page.svelte +++ b/frontend/src/routes/validation-tasks/[policyId]/runs/[runId]/+page.svelte @@ -5,7 +5,7 @@