ampproject / ampproject/amp.dev
Set language cookie
Open
Category: Localization
P1: High
Type: Feature
- Dominant language
- HTML
- Stars
- 600
- Forks
- 675
- PR merge metrics
- No merged PRs in 30d
Description
We should set a cookie for the currently selected language when the user switches the language and redirect on page load to the correct version (e.g. amp.dev => amp.dev/de). This way, users will always land on their preferred version when visiting `amp.dev`.
Note: this won't work from the cache (on Safari).
//cc @patrickkettner
Contributor guide
Assessment
This issue has not been assessed yet.