-
Already implemented remix-i18next in my project for static texts. I use zod for form data validations (with Remix validated form). Any hints or ways to point me in the right direction? I tried code like this:
But it does nothing. Also tried in the component:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think I made the solution myself :) In my
In my
And then the messages are translated to the file in my public folder where the |
Beta Was this translation helpful? Give feedback.
I think I made the solution myself :)
In my
i18n.ts
configuration file I changed the defaultNS to an array like so:In my
root.tsx
:And then the messages are translated to the file in my public folder where the
common.json
is also placed.The content of the
zod.json
is copied from the zod-i18n locales/de/zod.json file