feat: page de dons bilingue et retrait de la section de l'accueil
This commit is contained in:
@@ -83,6 +83,7 @@ function switchLanguage(lang) {
|
||||
}
|
||||
newPath = newPath.replace('/press/', '/presse/');
|
||||
newPath = newPath.replace('/legal-notice/', '/mentions-legales/');
|
||||
newPath = newPath.replace('/donate/', '/dons/');
|
||||
} else {
|
||||
// Switch to English
|
||||
if (!currentPath.startsWith('/en/')) {
|
||||
@@ -92,6 +93,7 @@ function switchLanguage(lang) {
|
||||
}
|
||||
newPath = newPath.replace('/presse/', '/press/');
|
||||
newPath = newPath.replace('/mentions-legales/', '/legal-notice/');
|
||||
newPath = newPath.replace('/dons/', '/donate/');
|
||||
}
|
||||
|
||||
window.location.href = newPath;
|
||||
|
||||
Reference in New Issue
Block a user