SEO blogpost
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user