Suppression de fonctions inutilisées et nettoyage des composants

This commit is contained in:
Jalil Arfaoui 2026-01-07 11:15:15 +01:00
parent 030298d311
commit b26bc077d9
3 changed files with 2 additions and 9 deletions

View file

@ -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;

View file

@ -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<string, string> = { fr: 'fr-FR', en: 'en-US', ar: 'ar-SA' };

View file

@ -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;
---
<!doctype html>