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
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:
@@ -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>
|
<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>
|
<p className="text-lg text-white/70 mb-8">{t('supportTeamAvailable')}</p>
|
||||||
<TrackedLink
|
<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"
|
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={{
|
eventProperties={{
|
||||||
location: 'generic_page_support_cta',
|
location: 'generic_page_support_cta',
|
||||||
|
|||||||
@@ -173,12 +173,12 @@ export default function Footer() {
|
|||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<Link
|
<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"
|
className="text-white/70 hover:text-accent transition-all duration-300 hover:translate-x-1 inline-block"
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
trackEvent(AnalyticsEvents.LINK_CLICK, {
|
trackEvent(AnalyticsEvents.LINK_CLICK, {
|
||||||
label: navT('contact'),
|
label: navT('contact'),
|
||||||
href: '/contact',
|
href: locale === 'de' ? '/kontakt' : '/contact',
|
||||||
location: 'footer_company',
|
location: 'footer_company',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ export default function Header() {
|
|||||||
const segmentMap: Record<string, Record<string, string>> = {
|
const segmentMap: Record<string, Record<string, string>> = {
|
||||||
de: {
|
de: {
|
||||||
produkte: 'products',
|
produkte: 'products',
|
||||||
|
kontakt: 'contact',
|
||||||
impressum: 'legal-notice',
|
impressum: 'legal-notice',
|
||||||
datenschutz: 'privacy-policy',
|
datenschutz: 'privacy-policy',
|
||||||
agbs: 'terms',
|
agbs: 'terms',
|
||||||
@@ -103,6 +104,7 @@ export default function Header() {
|
|||||||
},
|
},
|
||||||
en: {
|
en: {
|
||||||
products: 'produkte',
|
products: 'produkte',
|
||||||
|
contact: 'kontakt',
|
||||||
'legal-notice': 'impressum',
|
'legal-notice': 'impressum',
|
||||||
'privacy-policy': 'datenschutz',
|
'privacy-policy': 'datenschutz',
|
||||||
terms: 'agbs',
|
terms: 'agbs',
|
||||||
@@ -256,7 +258,7 @@ export default function Header() {
|
|||||||
style={{ animationDuration: '600ms', animationDelay: '700ms' }}
|
style={{ animationDuration: '600ms', animationDelay: '700ms' }}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
href={`/${currentLocale}/contact`}
|
href={`/${currentLocale}/${currentLocale === 'de' ? 'kontakt' : 'contact'}`}
|
||||||
variant="white"
|
variant="white"
|
||||||
size="md"
|
size="md"
|
||||||
className="px-8 shadow-xl hover:scale-105 transition-transform"
|
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">
|
<div className="w-full max-w-xs">
|
||||||
<Button
|
<Button
|
||||||
href={`/${currentLocale}/contact`}
|
href={`/${currentLocale}/${currentLocale === 'de' ? 'kontakt' : 'contact'}`}
|
||||||
variant="accent"
|
variant="accent"
|
||||||
size="lg"
|
size="lg"
|
||||||
className="w-full py-6 text-lg md:text-xl shadow-2xl hover:scale-105 transition-transform"
|
className="w-full py-6 text-lg md:text-xl shadow-2xl hover:scale-105 transition-transform"
|
||||||
|
|||||||
Reference in New Issue
Block a user