Skip to content

feat(web,mobile): English imprint + privacy pages with browser-lang detection - #67

Merged
cafca merged 1 commit into
mainfrom
claude/dazzling-rosalind-be36e7
Apr 25, 2026
Merged

feat(web,mobile): English imprint + privacy pages with browser-lang detection#67
cafca merged 1 commit into
mainfrom
claude/dazzling-rosalind-be36e7

Conversation

@cafca

@cafca cafca commented Apr 25, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds /impressum-en/ and /datenschutz-en/ as English siblings of the existing German legal pages.
  • Each page has a top-right DE | EN switcher; choice persists in localStorage via ?lang= param.
  • On first visit, German pages auto-redirect to English when navigator.language is not de*. German remains canonical and is marked legally binding.
  • Mobile webview (legal_document_screen.dart) appends ?embed=1 when loading the URL; pages then hide the nav crumb so it doesn't clash with the Flutter app bar. The flag is propagated through language redirects via sessionStorage + query-param.
  • English pages reuse the existing /legal/provider.png image (no new asset needed).

Test plan

  • Open /impressum/ in a browser with Accept-Language: de → stays on German, nav visible.
  • Open /impressum/ with Accept-Language: en → auto-redirects to /impressum-en/.
  • Click DE from EN page → goes to /impressum/?lang=de, sticks on subsequent visits.
  • Click EN from DE page → goes to /impressum-en/?lang=en, sticks on subsequent visits.
  • Open privacy / imprint inside the iOS app → no top nav links shown.
  • Same flow for /datenschutz//datenschutz-en/.

…etection

Add /impressum-en/ and /datenschutz-en/ as English siblings of the
existing German legal pages. Each page carries a top-right DE|EN
switcher; preference persists in localStorage via ?lang= param.

On first visit, German pages auto-redirect to English when the browser
language is not de*. The German version remains canonical and is
labelled as legally binding.

The mobile webview appends ?embed=1 when loading these URLs, which
hides the back-to-app / cross-link nav so they don't clash with the
native app bar. The flag is propagated through language redirects via
sessionStorage and query-param, so an embedded webview never shows the
nav even after a redirect.
@cafca
cafca merged commit 3ce74c0 into main Apr 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant