# Bug OP-14205 - Consent always shown in Browser language despite user's language being set differently

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-14205

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.3.1 |
| Observed in versions | 13.2.0 |
| Sprint | 13.3.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.2.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | OP Dev Titan Team |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Have two accounts, one for an admin and one for a normal user. Both already had logged in in the past. So if the there is a consent screen it is the one that stands alone and not the one that is shown during sign-up.
2.  For both users the browser's preferred language is set to English
3.  Set default user language to German  
    <img class="op-uc-image op-uc-image_inline" style="width:280px;" src="/api/v3/attachments/89811/content">
4.  Set the normal user's language to German  
    <img class="op-uc-image op-uc-image_inline" style="width:394px;" src="/api/v3/attachments/89813/content">
5.  Set a consent with an English text and a German text
6.  Check the checkbox for users that already have given a consent to give it again.  
    <img class="op-uc-image op-uc-image_inline" style="width:775px;" src="/api/v3/attachments/89814/content">
7.  Logout the normal user
8.  Login with the normal user

### What is the buggy behavior?

  - Despite the normal user's language being German, the consent is shown in English (which is my Browser's preferred language)

### What is the expected behavior?

1.  As the user already passed the login, OpenProject should know that the user's language is German and show the German consent message

### Environment information

**OpenProject installation type**

- [x] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**Browser**

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)
