Usage
How to use
Learn how to use Nuxt zodI18n.
This is only a basic example of what you can achieve with Nuxt zodI18n.
This example use NuxtUi.
As you see you don't need to add extra message in into the schema to have translated answers.
login.schema.ts
import { z } from 'zod'
export const loginSchema = z.object({
name: z.string().min(5).max(15),
email: z.string().email().min(1)
})
export type Login = z.input<typeof loginSchema>;