feat(web,mobile): English imprint + privacy pages with browser-lang detection - #67
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/impressum-en/and/datenschutz-en/as English siblings of the existing German legal pages.DE | ENswitcher; choice persists inlocalStoragevia?lang=param.navigator.languageis notde*. German remains canonical and is marked legally binding.?embed=1when 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 viasessionStorage+ query-param./legal/provider.pngimage (no new asset needed).Test plan
/impressum/in a browser withAccept-Language: de→ stays on German, nav visible./impressum/withAccept-Language: en→ auto-redirects to/impressum-en/.DEfrom EN page → goes to/impressum/?lang=de, sticks on subsequent visits.ENfrom DE page → goes to/impressum-en/?lang=en, sticks on subsequent visits./datenschutz/↔/datenschutz-en/.