stream-chat-react
stream-chat-react copied to clipboard
Translation codes
Motivation
We are trying to translate the API error messages through the i18next
tool but I don't want to translate them directly from English, what I want is a way to translate them from a numeric code or string, so I can identify them unambiguously even if the API text changes.
In the documentation we found this code guide https://getstream.io/chat/docs/react/api_errors_response/ but those Stream Codes
are not being returned in any way in the type:error messages.
Proposed solution Simply return the error type next to the text string.
Acceptance Criteria A way to identify errors unequivocally so they could be translated.