Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make errors returned from HTTP API localizable #1192

Open
dyc3 opened this issue Dec 22, 2023 · 1 comment
Open

Make errors returned from HTTP API localizable #1192

dyc3 opened this issue Dec 22, 2023 · 1 comment
Labels
client Improvements or additions to the web client enhancement New feature or request i18n aka Internationalization, Localization, Translation

Comments

@dyc3
Copy link
Owner

dyc3 commented Dec 22, 2023

Is your feature request related to a problem? Please describe.

Most REST API endpoints return errors with messages in english, which then get directly displayed to users. This results in users that may not speak english getting english error messages, and they may not be able to troubleshoot issues they are having.

Describe the solution you'd like

English error messages can remain in API responses as they are, but when displayed in the UI they should use the name field to look up the appropriate error message.

Additional context

No response

@dyc3 dyc3 added enhancement New feature or request client Improvements or additions to the web client i18n aka Internationalization, Localization, Translation labels Dec 22, 2023
@dyc3
Copy link
Owner Author

dyc3 commented Mar 3, 2024

we can do this with zod and zod-i18n

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Improvements or additions to the web client enhancement New feature or request i18n aka Internationalization, Localization, Translation
Projects
None yet
Development

No branches or pull requests

1 participant