SEO blogpost

This commit is contained in:
2026-08-05 19:39:22 +02:00
parent d7432fa65c
commit cf05e60251
53 changed files with 10592 additions and 125 deletions

View File

@@ -24,6 +24,11 @@ const routeGroups: Partial<Record<Lang, string>>[] = [
{ de: '/pflanzen-erkennen-kostenlos', en: '/best-plant-identification-app' },
{ en: '/plant-scanner', es: '/es/escaner-de-plantas' },
{ de: '/vs/google-lens', es: '/es/comparar/google-lens' },
// Ratgeber-Cluster: deutsche SEO-Seite und englischer Blogpost sind echte
// Übersetzungspaare, auch wenn die Templates unterschiedlich sind.
{ de: '/giessplan-zimmerpflanzen', en: '/blog/houseplant-watering-schedule' },
{ de: '/pflanzen-diagnose', en: '/blog/plant-health-diagnosis-guide' },
{ de: '/welche-pflanze-ist-das', en: '/blog/which-plant-is-this-guide' },
]
const fuzzyTargets: Record<string, Partial<Record<Lang, string>>> = {
@@ -68,7 +73,7 @@ const englishPaths = new Set([
export function getLocaleForPath(pathname: string): Lang {
if (pathname === '/es' || pathname.startsWith('/es/')) return 'es'
if (pathname === '/vs/google-lens') return 'de'
if (englishPaths.has(pathname) || pathname.startsWith('/vs/')) return 'en'
if (englishPaths.has(pathname) || pathname.startsWith('/vs/') || pathname.startsWith('/blog')) return 'en'
return 'de'
}