Skip to content

Profile language lost when browser is closed #18020

@fmunch

Description

@fmunch

Gitea Version

1.15.7

Git Version

2.30.2

Operating System

Debian 11.2

How are you running Gitea?

Using https://dl.gitea.io/gitea/1.15.7/gitea-1.15.7-linux-amd64 running from systemd.

Database

MySQL

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

Hello!

I am using Chrome 96 which is sending accept-language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7.

  1. I go to https://mygitea/
  2. Gitea is in French.
  3. Navigate to Configuration > Profile, set Language = English, save.
  4. Gitea is now in English when I navigate in it.
  5. Close and reopen browser.
  6. Gitea is in French once again.
  7. If I go back to Configuration > Profile, Language is still English but the page is in French. I just have to click Update Profile to have Gitea in English without touching anything else.

I created an account on try.gitea.io, same thing happens.

The screenshots show the configuration page from my Gitea and try.gitea.io displayed in French but with the language setting showing English.

Screenshots

https://imgur.com/a/EP0mAO2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions