# Bug OP-16268 - Wrong locale of error message while personal API access token creation

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Low |
| Module |  |
| Target versions | 15.2.0 |
| Observed in versions | 14.6.0 |
| Sprint | 15.2.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 14.6.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 | Jan Sandbrink |
| Product manager |  |
| Developers | Community Contributor |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Login as a user, change default locale in user's preferences

2.  Go to the token creation page

3.  Click on "Create" with empty name textbox

### What is the buggy behavior?

Error message is on current user's locale<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/251582/content">

### What is the expected behavior?

Localized error message 

### Environment information

<br>

**OpenProject installation type**

  - Docker-compose installation

  - Docker-compose development installation

**OpenProject version**

*v14.6.3 but dev version has the same code*

**Language**

*All except default instance set*
