Add support for multilingual legal pages with English aliases, dynamic link replacement in headers, and redirections for alias routes. Update tests, configs, and frontend assets accordingly.

This commit is contained in:
Overlord committed 2026-10-13 16:41:08 +02:00
1 parent 5f3ff481b4
commit 5305687f98
16 files changed
+151 -39

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
// The legal pages keep their German names for German visitors. Everyone else
// sees the English names that data-en holds; the links stay the same.
const language = (navigator.languages && navigator.languages[0]) || navigator.language || 'en';
if (!/^de\b/i.test(language))
{
for (const link of document.querySelectorAll('a[data-en]')) link.textContent = link.dataset.en;
}