From 74a5412b7e2d86378f0f9db13006c9ea7d09f6f3 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 3 Apr 2026 20:13:18 -0300 Subject: [PATCH 1/2] Add Track type definition with TrackBadgeKey --- src/entities/track.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entities/track.ts b/src/entities/track.ts index f2e5007..bb108c5 100644 --- a/src/entities/track.ts +++ b/src/entities/track.ts @@ -1,5 +1,6 @@ export type TrackBadgeKey = "track.badge.beginner" | "track.badge.advanced" +// Track export type Track = { id: string title: string From d51647d0bf956eafc0a893fcc7765dd0ffa689b5 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Fri, 3 Apr 2026 20:15:14 -0300 Subject: [PATCH 2/2] Update CookieBanner.astro --- src/components/CookieBanner.astro | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/CookieBanner.astro b/src/components/CookieBanner.astro index 2bcd700..61bbe6a 100644 --- a/src/components/CookieBanner.astro +++ b/src/components/CookieBanner.astro @@ -4,6 +4,7 @@ import { defaultLang, ui } from "~/i18n/ui" const lang = Astro.locals.lang ?? defaultLang +// Hola Sergio type TranslationKey = keyof (typeof ui)[typeof defaultLang] const t = (key: TranslationKey) => ui[lang][key] ?? ui[defaultLang][key] const projectId = import.meta.env.VITE_CLARITY_PROJECT_ID