A Nuxt Module for localizing zod error messages.
Check the playground for usage doc and test will come later
nuxt-zod-i18n
dependency to your projectnpx nuxi@latest module add nuxt-zod-i18n
nuxt-zod-i18n
to the modules
section of nuxt.config.ts
before @nuxtjs/i18n
moduleexport default defineNuxtConfig({
modules: ['nuxt-zod-i18n', '@nuxtjs/i18n']
})
That's it! You can now use Nuxt ZodI18n in your Nuxt app ✨
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release