Translate exceptions

Created on 8 April 2020, about 5 years ago
Updated 14 October 2024, 6 months ago

Problem/Motivation

Currently, exceptions are returned in English (by design), which makes it hard for a frontend to display a localized relevant error message.
I'm going to submit a patch that translates the exceptions, however I'm not convinced this is the right thing to do.

The right thing to do would be to copy core's approach for returning violations, See Drupal\jsonapi\Exception\UnprocessableHttpEntityException. However this works only for validating entities and their fields right now...

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇱Israel jsacksick

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024