From b26bc077d9eb21ba91f6697b759644d3e847c288 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Wed, 7 Jan 2026 11:15:15 +0100 Subject: [PATCH] =?UTF-8?q?Suppression=20de=20fonctions=20inutilis=C3=A9es?= =?UTF-8?q?=20et=20nettoyage=20des=20composants?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/header-i18n.astro | 7 ------- src/content/config.ts | 2 +- src/layouts/PhotoLayout.astro | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/components/header-i18n.astro b/src/components/header-i18n.astro index 3d146a4..141ca55 100644 --- a/src/components/header-i18n.astro +++ b/src/components/header-i18n.astro @@ -12,13 +12,6 @@ const languageOptions = [ { code: 'ar', label: 'AR', flag: 'πŸ‡ΈπŸ‡¦', dir: 'rtl' } ]; -function getLocalizedUrl(url: string, targetLocale: string): string { - if (targetLocale === 'fr') { - return url; - } - return `/${targetLocale}${url}`; -} - function getCurrentLocaleUrl(targetLocale: string): string { let path = currentPath; diff --git a/src/content/config.ts b/src/content/config.ts index c502295..ad14c5d 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -1,4 +1,4 @@ -import { defineCollection, z, type ImageFunction } from "astro:content"; +import { defineCollection, z } from "astro:content"; const formatDate = (date: Date, lang: string = 'fr') => { const locales: Record = { fr: 'fr-FR', en: 'en-US', ar: 'ar-SA' }; diff --git a/src/layouts/PhotoLayout.astro b/src/layouts/PhotoLayout.astro index c535cca..2a63140 100644 --- a/src/layouts/PhotoLayout.astro +++ b/src/layouts/PhotoLayout.astro @@ -1,5 +1,5 @@ --- -const { title = "Galerie Photo - Jalil Arfaoui", enableScroll = false, hideFooter = false } = Astro.props; +const { title = "Galerie Photo - Jalil Arfaoui", enableScroll = false } = Astro.props; ---