i18n: add Paraglide messages for all events pages (EN + ET)

This commit is contained in:
AlacrisDevs
2026-02-07 10:16:13 +02:00
parent 36496e8cdb
commit fe6ec6e0af
6 changed files with 232 additions and 94 deletions

View File

@@ -3,6 +3,7 @@
import { Avatar } from "$lib/components/ui";
import type { Snippet } from "svelte";
import type { Event, EventMember } from "$lib/api/events";
import * as m from "$lib/paraglide/messages";
interface Props {
data: {
@@ -30,43 +31,43 @@
const modules = $derived([
{
href: basePath,
label: "Overview",
label: m.events_overview(),
icon: "dashboard",
exact: true,
},
{
href: `${basePath}/tasks`,
label: "Tasks",
label: m.events_mod_tasks(),
icon: "task_alt",
},
{
href: `${basePath}/files`,
label: "Files",
label: m.events_mod_files(),
icon: "folder",
},
{
href: `${basePath}/schedule`,
label: "Schedule",
label: m.events_mod_schedule(),
icon: "calendar_today",
},
{
href: `${basePath}/budget`,
label: "Budget",
label: m.events_mod_budget(),
icon: "account_balance_wallet",
},
{
href: `${basePath}/guests`,
label: "Guests",
label: m.events_mod_guests(),
icon: "groups",
},
{
href: `${basePath}/team`,
label: "Team",
label: m.events_mod_team(),
icon: "badge",
},
{
href: `${basePath}/sponsors`,
label: "Sponsors",
label: m.events_mod_sponsors(),
icon: "handshake",
},
]);
@@ -155,7 +156,7 @@
<!-- Event Team Preview -->
<div class="p-3 border-t border-light/5">
<p class="text-[11px] text-light/40 mb-2 px-1">
Team ({data.eventMembers.length})
{m.events_team_count({ count: String(data.eventMembers.length) })}
</p>
<div class="flex flex-wrap gap-1 px-1">
{#each data.eventMembers.slice(0, 8) as member}
@@ -189,7 +190,7 @@
style="font-size: 16px; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 16;"
>arrow_back</span
>
All Events
{m.events_all_events()}
</a>
</aside>