Suppression de fonctions inutilisées et nettoyage des composants
This commit is contained in:
parent
030298d311
commit
b26bc077d9
3 changed files with 2 additions and 9 deletions
|
|
@ -12,13 +12,6 @@ const languageOptions = [
|
||||||
{ code: 'ar', label: 'AR', flag: '🇸🇦', dir: 'rtl' }
|
{ 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 {
|
function getCurrentLocaleUrl(targetLocale: string): string {
|
||||||
let path = currentPath;
|
let path = currentPath;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 formatDate = (date: Date, lang: string = 'fr') => {
|
||||||
const locales: Record<string, string> = { fr: 'fr-FR', en: 'en-US', ar: 'ar-SA' };
|
const locales: Record<string, string> = { fr: 'fr-FR', en: 'en-US', ar: 'ar-SA' };
|
||||||
|
|
|
||||||
|
|
@ -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>
|
<!doctype html>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue