ampproject / ampproject/amp.dev

Set language cookie

Open
#3,796 0 comments 0 reactions 1 assignee Claimed by @bezoerb View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.