--- import '../styles/global.css'; import { ctaLabelFor } from '../i18n/routes'; import { getRelativeLocaleUrl } from 'astro:i18n'; const { title = 'VillaFleurie', lang = 'fr', description = 'Séjours confortables au Gosier pour couples et petites familles' } = Astro.props; // Locale alternates for the current path const altFr = getRelativeLocaleUrl('fr', Astro.url.pathname); const altEn = getRelativeLocaleUrl('en', Astro.url.pathname); // Canonical URL const canonicalUrl = new URL(Astro.url.pathname, Astro.site ?? 'https://villafleuriegp.com').toString(); const nav = lang === 'en' ? [ { label: 'Apartments', href: getRelativeLocaleUrl('en', '/apartments/') }, { label: 'Reviews', href: getRelativeLocaleUrl('en', '/reviews/') }, { label: 'Location & Access', href: getRelativeLocaleUrl('en', '/location-access/') }, { label: 'Rates', href: getRelativeLocaleUrl('en', '/rates-availability/') }, ] : [ { label: 'Appartements', href: getRelativeLocaleUrl('fr', '/appartements/') }, { label: 'Avis', href: getRelativeLocaleUrl('fr', '/avis/') }, { label: 'Accès', href: getRelativeLocaleUrl('fr', '/acces/') }, { label: 'Tarifs', href: getRelativeLocaleUrl('fr', '/tarifs-disponibilites/') }, ]; const ctaLabel = ctaLabelFor(lang); const homeHref = getRelativeLocaleUrl(lang, '/'); --- {title} · VillaFleurie