feat: page mentions légales bilingue
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user