What problem does it solve?
This Skill solves broken multilingual navigation and inconsistent SEO metadata by ensuring every marketing route has correct locale-aware slugs, canonical URLs, and discoverability controls.
Core Features & Use Cases
- Correct translated slugs & language switching: Ensures navigation between EN/ES lands on the canonical URL for each locale (including default-locale “as-needed” behavior without redundant prefixes).
- Production-ready SEO metadata: Implements canonical, hreflang/language alternates, and Open Graph URL consistency per marketing page using localized paths.
- Sitemap and robots hygiene: Updates sitemap inclusion for indexable routes only and excludes dev-only routes so they are not indexed.
- Real-world use case: When a marketing page like “Pricing” uses translated slugs and the user switches from
/en/pricing to Spanish, the toggle must route them to /precios (not an incorrect prefixed default-locale variant), while canonical metadata and sitemap stay consistent.
Quick Start
Update src/i18n/routing.ts, wire the home page into the shared marketing layout, then implement per-page generateMetadata for the marketing routes and update src/app/sitemap.ts plus the language toggle to navigate to canonical localized URLs.