feat: page mentions légales bilingue

This commit is contained in:
2026-07-06 18:18:07 +04:00
parent 40df39cc67
commit ac0fc22f3b
2 changed files with 224 additions and 0 deletions
+2
View File
@@ -82,6 +82,7 @@ function switchLanguage(lang) {
newPath = currentPath;
}
newPath = newPath.replace('/press/', '/presse/');
newPath = newPath.replace('/legal-notice/', '/mentions-legales/');
} else {
// Switch to English
if (!currentPath.startsWith('/en/')) {
@@ -90,6 +91,7 @@ function switchLanguage(lang) {
newPath = currentPath;
}
newPath = newPath.replace('/presse/', '/press/');
newPath = newPath.replace('/mentions-legales/', '/legal-notice/');
}
window.location.href = newPath;