added missing translations

This commit is contained in:
Codex Agent
2025-11-26 14:41:39 +01:00
parent ff168834b4
commit ecac9507a4
35 changed files with 2812 additions and 256 deletions

View File

@@ -681,6 +681,7 @@ export default function EventBrandingPage(): React.ReactElement {
}
function BrandingPreview({ branding, theme }: { branding: BrandingForm; theme: 'light' | 'dark' }) {
const { t } = useTranslation('management');
const textColor = getContrastingTextColor(branding.palette.primary, '#0f172a', '#ffffff');
const headerStyle: React.CSSProperties = {
background: `linear-gradient(135deg, ${branding.palette.primary}, ${branding.palette.secondary})`,
@@ -709,9 +710,11 @@ function BrandingPreview({ branding, theme }: { branding: BrandingForm; theme: '
</div>
<div className="flex flex-col">
<CardTitle className="text-base font-semibold" style={{ fontFamily: branding.typography.heading || undefined }}>
Demo Event
{t('branding.preview.demoTitle', 'Demo Event')}
</CardTitle>
<span className="text-xs opacity-80">Gastansicht · {branding.mode}</span>
<span className="text-xs opacity-80">
{t('branding.preview.guestView', { mode: branding.mode, defaultValue: 'Guest view · {{mode}}' })}
</span>
</div>
</div>
</div>
@@ -719,7 +722,7 @@ function BrandingPreview({ branding, theme }: { branding: BrandingForm; theme: '
<CardContent className="space-y-4 bg-[var(--surface)] px-4 py-5" style={{ ['--surface' as string]: branding.palette.surface }}>
<div className="space-y-2">
<p className="text-sm text-slate-600 dark:text-slate-200" style={{ fontFamily: branding.typography.body || undefined }}>
CTA & Buttons spiegeln den gewählten Stil wider.
{t('branding.preview.ctaCopy', 'CTA & buttons reflect the chosen style.')}
</p>
<Button
className="shadow-md transition"
@@ -730,12 +733,14 @@ function BrandingPreview({ branding, theme }: { branding: BrandingForm; theme: '
paddingBlock: '10px',
}}
>
Jetzt Fotos hochladen
{t('branding.preview.cta', 'Upload photos now')}
</Button>
</div>
<Separator />
<div className="flex items-center justify-between rounded-2xl border border-dashed border-slate-200 p-3 text-sm dark:border-slate-700" style={{ borderRadius: branding.buttons.radius }}>
<span style={{ color: branding.buttons.linkColor || branding.palette.secondary }}>Bottom Navigation</span>
<span style={{ color: branding.buttons.linkColor || branding.palette.secondary }}>
{t('branding.preview.bottomNav', 'Bottom navigation')}
</span>
<div className="flex items-center gap-2">
<div className="h-1.5 w-10 rounded-full" style={{ background: branding.palette.primary }} />
<div className="h-1.5 w-10 rounded-full" style={{ background: branding.palette.secondary }} />