Page MenuHomePhabricator

Include error message translations in the user language in the REST API's error response
Open, Needs TriagePublic

Description

The REST API's error response schema includes an object (messageTranslations), for returning key-value pairs of language code to translated error message.

The included languages, defined in EntryPoint::getTextFormatters are the content language and English. The messageTranslations object is made in ResponseFactory::formatMessage, using these languages.

It would be helpful to add the user language too, if it differs from either of these. Tagging Platform Engineering in case there's a particular reason why not to include the user language.

Event Timeline

@Tchanders Would this be a good contender for a new engineer onboarding task?

@Niharika I think it could be, if Platform Engineering are happy for us to do this

Naike subscribed.

@Tchanders we're thrilled for you to do this task! Thank you for offering.

Adding this to our board. If it seems like it's not a good fit for our team, we may place it up for grabs later. :)