fix(layout): replace hardcoded 'Hochladen' with m.upload_action() + aria-label

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-19 22:23:32 +02:00
parent 94823f85c8
commit d6e5d3d1e8
5 changed files with 22 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
import './layout.css';
import { page } from '$app/state';
import { onMount } from 'svelte';
import * as m from '$lib/paraglide/messages.js';
import LanguageSwitcher from '$lib/components/LanguageSwitcher.svelte';
import ThemeToggle from '$lib/components/ThemeToggle.svelte';
import NotificationBell from '$lib/components/NotificationBell.svelte';
@@ -55,6 +56,7 @@ const userInitials = $derived.by(() => {
{#if data?.user}
<a
href="/documents/new"
aria-label={m.upload_action()}
class="inline-flex items-center gap-2 rounded-sm border border-white/25 px-3.5 py-1.5 font-sans text-[11px] font-bold tracking-[.12em] text-white uppercase transition-colors hover:bg-white/10"
>
<svg
@@ -73,7 +75,7 @@ const userInitials = $derived.by(() => {
<polyline points="17 8 12 3 7 8" />
<line x1="12" y1="3" x2="12" y2="15" />
</svg>
Hochladen
{m.upload_action()}
</a>
{/if}
<!-- Language selector (desktop only — mobile lives in nav drawer) -->