Skip to content

danielroe/xibman-nuxt-zod-i18n

 
 

Repository files navigation

Nuxt ZodI18n

npm version npm downloads License Nuxt

A Nuxt Module for localizing zod error messages.

Check the playground for usage doc and test will come later

Features

Quick Setup

  1. Add nuxt-zod-i18n dependency to your project
# Using pnpm
pnpm add -D nuxt-zod-i18n

# Using yarn
yarn add --dev nuxt-zod-i18n

# Using npm
npm install --save-dev nuxt-zod-i18n
  1. Add nuxt-zod-i18n to the modules section of nuxt.config.ts before @nuxtjs/i18n module
export default defineNuxtConfig({
  modules: ['nuxt-zod-i18n', '@nuxtjs/i18n']
})

That's it! You can now use Nuxt ZodI18n in your Nuxt app ✨

Development

# 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

About

Easily Translate Zod's error messages on nuxt

Resources

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

  • TypeScript 62.2%
  • Vue 36.8%
  • Other 1.0%