透過 100 多個技巧的集合學習 Nuxt!

nuxt-zod-i18n
nuxt-zod-i18n

一個用於本地化 zod 錯誤訊息的 Nuxt 模組。

Nuxt ZodI18n

npm versionnpm downloadsLicenseNuxt

一個用於本地化 zod 錯誤訊息的 Nuxt 模組。

請查看 playground 以了解使用文件,測試將在稍後推出

功能

快速設定

  1. nuxt-zod-i18n 相依性新增到您的專案
npx nuxi@latest module add nuxt-zod-i18n
  1. @nuxtjs/i18n 模組之前,將 nuxt-zod-i18n 新增到 nuxt.config.tsmodules 區段
export default defineNuxtConfig({
  modules: ['nuxt-zod-i18n', '@nuxtjs/i18n']
})

就這樣!您現在可以在您的 Nuxt 應用程式中使用 Nuxt ZodI18n ✨

開發

# 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