Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/components/CookieBanner.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/entities/track.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export type TrackBadgeKey = "track.badge.beginner" | "track.badge.advanced"

// Track
export type Track = {
id: string
title: string
Expand Down