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

Feature request: Customize validation error messages #3798

Open
einarpersson opened this issue Nov 21, 2023 · 0 comments
Open

Feature request: Customize validation error messages #3798

einarpersson opened this issue Nov 21, 2023 · 0 comments

Comments

@einarpersson
Copy link

Hi,

My application targets a non-english audience.

It would be valuable if any of these would be true:

  1. Being able to customize all validation error messages in the same manner as you can with email templates (accessible through Admin-UI and settings-object in hooks/api).
  2. Pocketbase natively supported a lang attribute that governs validation messages. I don't know where these messages live in the codebase currently, but by utilizing ChatGPT etc translating a JSON with all messages may not be such a enormous project as it used to be.

Current workaround - parse the validation error code in either pb_hooks or in frontend application. However, this requires a list of all possible validation error codes and I cannot find anything like this when searching or looking at the generated types

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

1 participant