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

i18n Error Messages #934

Open
bernadetteporter opened this issue Feb 17, 2025 · 2 comments
Open

i18n Error Messages #934

bernadetteporter opened this issue Feb 17, 2025 · 2 comments

Comments

@bernadetteporter
Copy link

Internationalization of the error messages would be immensely helpful for multi-language applications. Alternatively, it would be really helpful to get a list of all potential errors that could be produced from the keygen API so I could internationalize them myself. I've tried looking through the website but I couldn't find anything.

Thanks for your help!

@ezekg
Copy link
Member

ezekg commented Feb 17, 2025

Thanks for bringing this up. Errors mainly come from model validations and from Rails internals, but they may also come from gems like typed_params and others. Because of the dynamic nature of our error handling, and the various places errors can originate from, documenting all error messages would be a herculean effort. It's been on the "nice to have" list — and we may be able to get at least halfway there utilizing the integration test suite — but hasn't been a priority, to be honest.

With that said, implementing i18n would also be quite a herculean effort, and although we don't have any plans on implementing it ourselves, we would entertain contributions.

@ezekg
Copy link
Member

ezekg commented Feb 17, 2025

Related: keygen-sh/typed_params#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants