HC-IPPM / HC-IPPM/safe-inputs

API errors intended to be shown to users need bilingualism

Open
#184 2 comments 0 reactions 0 assignees View on GitHub
backend (/api)
Dominant language
TypeScript
Stars
3
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Either get the client language from the request or send both an en and fr message back and let the client pick which to display.

What about errors thrown by middleware or express itself? Maybe we only care about displaying specific error descriptions for our own error cases, perhaps we catch those and make sure they have a generic error message, based on status code, for the relevant client language.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.