diff --git a/app/kallor/page.tsx b/app/kallor/page.tsx index 5fecfe4..d412cd6 100644 --- a/app/kallor/page.tsx +++ b/app/kallor/page.tsx @@ -176,7 +176,7 @@ export default function SourcesPage() { border: l.level === 0 ? "1px solid var(--prov-0)" : "none", }} /> - {l.text} + {t(l.text)} ))} diff --git a/app/portal/integrationer/page.tsx b/app/portal/integrationer/page.tsx index 2ae7242..d484845 100644 --- a/app/portal/integrationer/page.tsx +++ b/app/portal/integrationer/page.tsx @@ -18,7 +18,11 @@ import { LoadingSkeleton, ErrorState } from "@/components/states"; * raderas efter jobbet. Inga råa creds lagras i klartext. */ -const SCOPES = ["Endast läsning", "Utvald tabell", "Vald vy"]; +const SCOPES: { id: string; label: { en: string; sv: string } }[] = [ + { id: "read_only", label: { en: "Read only", sv: "Endast läsning" } }, + { id: "selected_table", label: { en: "Selected table", sv: "Utvald tabell" } }, + { id: "selected_view", label: { en: "Selected view", sv: "Vald vy" } }, +]; const SECTION = "border border-border bg-background"; @@ -125,7 +129,7 @@ function ApiKeys() { function DbAccess() { const t = useT(); const [conn, setConn] = useState(""); - const [scope, setScope] = useState(SCOPES[0]); + const [scope, setScope] = useState(SCOPES[0].id); const [expires, setExpires] = useState(""); const [submitting, setSubmitting] = useState(false); const [guidance, setGuidance] = useState(null); @@ -203,8 +207,8 @@ function DbAccess() { className={INPUT} > {SCOPES.map((s) => ( - ))} @@ -263,17 +267,17 @@ function DbAccess() { {t({ en: "How it works", sv: "Så fungerar det" })}