Technical settings
Check Language Paths
Marketing pages use sitePages in routes.ts: each pageId maps to { en, tr, de, ru } paths. Rehber (/docs) uses docsPages (en + tr only). getAlternatePaths() powers the switcher.
Open routes.ts
Edit src/config/routes.ts → sitePages. Each pageId has paths for en, tr, de, ru (localized slugs for non-EN locales).
Add a new page
export const sitePages = {
pricing: {
en: "/pricing",
tr: "/tr/fiyatlandirma",
de: "/de/preise",
ru: "/ru/tseny",
},
};
When you must add a route
- Every new static page with both EN and TR versions
- Every new docs guide page (see existing /docs entries)
- Blog posts use dynamic slugs — add pairs only if you use fixed blog index paths
Test the switcher
Open a page in the browser, click the language toggle in the header, and confirm you land on the correct translated URL.