Usage
Overload translation
Learn how to overload translation from zodI18n.
You can overload translation that comes from Nuxt zodI18n by adding them into your own translation files.
All zod translations are under the zodI18n
key.
See the en-GB.json file for translation structure
website.schema.ts
import { z } from 'zod'
export const websiteSchema = z.object({
name: z.string().min(5).max(15),
url: z.string().url().min(1)
})
export type Website = z.input<typeof websiteSchema>;