arktypea
arktype17mo ago
PIat

Error internationalization (i18n)

Hello! Is it possible to translate the errors into other languages?

In my previous setup I was using this for such funtionality:
https://github.com/aiji42/zod-i18n

I saw this issue opened for individual fields, which would really be great:
https://github.com/arktypeio/arktype/issues/722

Is this the way for "general" errors?
https://github.com/arktypeio/arktype/issues/404
GitHub
Useful for translating zod error messages. Contribute to aiji42/zod-i18n development by creating an account on GitHub.
GitHub
Ideally any error message should be specifiable as a Record of strings representing locale IDs to the translations in that locale, e.g: const creditCard = type("number", {mustBe: "a ...
GitHub
Description The current error messages or great at finding the failed validation returned via api, but this could also be harnessed in the frontend. So it would be really useful to be able to speci...
Was this page helpful?