feat(windkarte): alle UI-Strings auf t(T.windkarte_*) umgestellt
Keine hardcodierten Texte mehr — alle Strings über CMS translation_bundle (app.json5). Keys in translations.ts registriert. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
import type { WindMapBlockData } from "$lib/block-types";
|
||||
import type { WindArea } from "$lib/windkarte";
|
||||
import WindAreaPanel from "$lib/components/WindAreaPanel.svelte";
|
||||
import { useTranslate, T } from "$lib/translations";
|
||||
|
||||
const t = useTranslate();
|
||||
|
||||
let { block }: { block: WindMapBlockData } = $props();
|
||||
|
||||
@@ -89,8 +92,8 @@
|
||||
<button
|
||||
onclick={() => { resetMap?.(); handleSelect(null); }}
|
||||
class="pointer-events-auto absolute top-2.5 right-2.5 z-[500] rounded-md bg-white/90 p-1.5 shadow-md text-stein-500 hover:text-stein-800 hover:bg-white transition-colors"
|
||||
aria-label="Übersicht zurücksetzen"
|
||||
title="Übersicht zurücksetzen"
|
||||
aria-label={t(T.windkarte_reset_aria)}
|
||||
title={t(T.windkarte_reset_aria)}
|
||||
>
|
||||
<svg class="size-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/>
|
||||
@@ -111,7 +114,7 @@
|
||||
{/await}
|
||||
{:else}
|
||||
<div class="flex h-full items-center justify-center bg-stein-50 text-stein-400 text-sm">
|
||||
Karte wird geladen …
|
||||
{t(T.windkarte_loading)}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -129,14 +132,14 @@
|
||||
<div class="mt-2 flex flex-wrap gap-x-5 gap-y-1.5 text-xs text-stein-400">
|
||||
<span class="flex items-center gap-1.5">
|
||||
<span class="inline-block size-2.5 rounded-sm" style="background:#2d7a45; opacity:.7"></span>
|
||||
Rechtskräftig (2012)
|
||||
{t(T.windkarte_legend_rechtskraeftig)}
|
||||
</span>
|
||||
<span class="flex items-center gap-1.5">
|
||||
<span class="inline-block size-2.5 rounded-sm" style="background:#b08a52; opacity:.7"></span>
|
||||
2. Entwurf 2026
|
||||
{t(T.windkarte_legend_entwurf_2)}
|
||||
</span>
|
||||
<span class="flex items-center gap-x-3 gap-y-1 flex-wrap text-stein-300">
|
||||
<span class="text-stein-400">Abstände:</span>
|
||||
<span class="text-stein-400">{t(T.windkarte_legend_distances)}</span>
|
||||
{#each [{ color: "#e35651", label: "200 m" }, { color: "#b08a52", label: "600 m" }, { color: "#436e85", label: "1 km" }] as ring}
|
||||
<span class="flex items-center gap-1.5">
|
||||
<span class="dashed-line" style="border-color:{ring.color}"></span>
|
||||
|
||||
Reference in New Issue
Block a user