i18n(common): bootstrap shared namespace + migrate top-level UI

Add a per-locale common dictionary at src/lib/i18n/common/{de,en}.ts and
the shim src/lib/js/commonI18n.ts. Migrate inline lang ternaries on the
homepage (welcome/sections/links), OfflineSyncButton (all label
ternaries), DatePicker (today/select date), ErrorView (Error/Fehler
eyebrow), and UserHeader (login aria/title) to use the shared dict.

The long marketing intro paragraphs on the homepage stay inline since
they're one-shot content with no drift risk and don't benefit from
per-key extraction.

Bump site version to 1.57.0 (new namespace).
This commit is contained in:
2026-05-01 14:03:52 +02:00
parent 71f7322624
commit 79f4dbb101
9 changed files with 131 additions and 27 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "homepage",
"version": "1.56.2",
"version": "1.57.0",
"private": true,
"type": "module",
"scripts": {