fix: translate all hardcoded /contact links and add kontakt mapping to language switcher
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 14s
Build & Deploy / 🧪 QA (push) Has been cancelled
Build & Deploy / 🏗️ Build (push) Has been cancelled
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled
Build & Deploy / ⚡ Performance & Accessibility (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled

This commit is contained in:
2026-02-25 01:38:42 +01:00
parent 2ba67af68a
commit 2db2a3aff9
3 changed files with 7 additions and 5 deletions

View File

@@ -97,7 +97,7 @@ export default async function StandardPage({ params }: PageProps) {
<h3 className="text-2xl md:text-3xl font-bold mb-4">{t('needHelp')}</h3>
<p className="text-lg text-white/70 mb-8">{t('supportTeamAvailable')}</p>
<TrackedLink
href={`/${locale}/contact`}
href={`/${locale}/${locale === 'de' ? 'kontakt' : 'contact'}`}
className="inline-flex items-center px-8 py-4 bg-accent text-primary-dark font-bold rounded-full hover:bg-white transition-all duration-300 group/link"
eventProperties={{
location: 'generic_page_support_cta',

View File

@@ -173,12 +173,12 @@ export default function Footer() {
</li>
<li>
<Link
href={`/${locale}/contact`}
href={`/${locale}/${locale === 'de' ? 'kontakt' : 'contact'}`}
className="text-white/70 hover:text-accent transition-all duration-300 hover:translate-x-1 inline-block"
onClick={() =>
trackEvent(AnalyticsEvents.LINK_CLICK, {
label: navT('contact'),
href: '/contact',
href: locale === 'de' ? '/kontakt' : '/contact',
location: 'footer_company',
})
}

View File

@@ -93,6 +93,7 @@ export default function Header() {
const segmentMap: Record<string, Record<string, string>> = {
de: {
produkte: 'products',
kontakt: 'contact',
impressum: 'legal-notice',
datenschutz: 'privacy-policy',
agbs: 'terms',
@@ -103,6 +104,7 @@ export default function Header() {
},
en: {
products: 'produkte',
contact: 'kontakt',
'legal-notice': 'impressum',
'privacy-policy': 'datenschutz',
terms: 'agbs',
@@ -256,7 +258,7 @@ export default function Header() {
style={{ animationDuration: '600ms', animationDelay: '700ms' }}
>
<Button
href={`/${currentLocale}/contact`}
href={`/${currentLocale}/${currentLocale === 'de' ? 'kontakt' : 'contact'}`}
variant="white"
size="md"
className="px-8 shadow-xl hover:scale-105 transition-transform"
@@ -388,7 +390,7 @@ export default function Header() {
<div className="w-full max-w-xs">
<Button
href={`/${currentLocale}/contact`}
href={`/${currentLocale}/${currentLocale === 'de' ? 'kontakt' : 'contact'}`}
variant="accent"
size="lg"
className="w-full py-6 text-lg md:text-xl shadow-2xl hover:scale-105 transition-transform"