Our transfer booking site navetteforyou.com serves 8 languages across 633+ pages per language. That is over 5000 static routes generated at build time by Astro. Here is what we learned deploying it to Vercel.
The i18n Architecture
Astro's content collections power the route generation. Each route exists in 8 language variants: English, French, Arabic, German, Spanish, Italian, Dutch, and Portuguese.
/en/airport-transfer-marrakech
/fr/transfert-aeroport-marrakech
/ar/نقل-مطار-مراكش
/de/flughafentransfer-marrakesch
... (5 more languages)
Each variant has:
- Translated slugs (not just /fr/airport-transfer)
- Proper hreflang tags pointing to all alternates
- RTL layout support for Arabic
- Currency display in the user's expected format
Build Performance
5000+ static pages take time. Our build optimizations:
- Parallel content processing — Astro processes content collections concurrently
- Image optimization at build — Sharp processes all images once, not per-request
- Incremental builds — Only regenerate changed routes (Vercel ISR)
Build time went from 12 minutes to under 4 minutes.
Hreflang at Scale
Every page needs 8 hreflang tags pointing to its translations. Getting this wrong means Google indexes the wrong language variant for a market.
<link rel="alternate" hreflang="en" href="https://www.navetteforyou.com/en/..." />
<link rel="alternate" hreflang="fr" href="https://www.navetteforyou.com/fr/..." />
<link rel="alternate" hreflang="ar" href="https://www.navetteforyou.com/ar/..." />
We generate these from a single route map — same source of truth that drives the sitemap.
RTL Support
Arabic (our third-highest traffic language) requires right-to-left layout. We handle this with:
-
dir="rtl"on the html element for Arabic routes - CSS logical properties (
margin-inline-startinstead ofmargin-left) - Mirrored navigation and form layouts
Deployment
Vercel handles the 5000+ static pages efficiently. Vercel ISR means we can update individual pages without rebuilding everything.
Operated by Serenity Morocco Tours. Visit navetteforyou.com or WhatsApp +212 701 664 704.
Top comments (1)
Using the same route map for hreflang and the sitemap is a thoughtful choice. With translated slugs across eight languages, keeping those relationships in one place should make reviews easier and reduce the chance of the two outputs drifting apart.