Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • website website
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 7
    • Issues 7
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • totemtotem
  • websitewebsite
  • Issues
  • #68
Closed
Open
Issue created Dec 14, 2020 by Maarten de Waard@maarten👼Maintainer

Auto-select language and save cookie on language change

The language of the Totem website should be automatically selected if people's Accept-Language header corresponds to one of the hosted languages.

If the user changes the language based on the dropdown, this should be saved in a cookie. That cookie should be secure and stay available for long.

Example cookie:

openedx-language-preference=es;expires=Tue Dec 14 2021 15:52:25 GMT+0100 (Central European Standard Time);domain=.totem-project.org;secure=true

Note that the domain is .totem-project.org so learn.totem-project.org can access it too.

Make the date like this:

myDate = Date(); myDate.setMonth(myDate.getMonth() + 3)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking