├── .eslintrc.json ├── .gitignore ├── README.md ├── app ├── [locale] │ ├── layout.tsx │ └── page.tsx └── globals.css ├── components └── ExampleForm.tsx ├── global.d.ts ├── i18n.ts ├── lib ├── useI18nZodErrors.ts └── zodErrorMap.ts ├── messages ├── de.json ├── en.json └── zod │ ├── de.json │ └── en.json ├── middleware.ts ├── next.config.mjs ├── package.json └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/README.md -------------------------------------------------------------------------------- /app/[locale]/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/app/[locale]/layout.tsx -------------------------------------------------------------------------------- /app/[locale]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/app/[locale]/page.tsx -------------------------------------------------------------------------------- /app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/app/globals.css -------------------------------------------------------------------------------- /components/ExampleForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/components/ExampleForm.tsx -------------------------------------------------------------------------------- /global.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/global.d.ts -------------------------------------------------------------------------------- /i18n.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/i18n.ts -------------------------------------------------------------------------------- /lib/useI18nZodErrors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/lib/useI18nZodErrors.ts -------------------------------------------------------------------------------- /lib/zodErrorMap.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/lib/zodErrorMap.ts -------------------------------------------------------------------------------- /messages/de.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/messages/de.json -------------------------------------------------------------------------------- /messages/en.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/messages/en.json -------------------------------------------------------------------------------- /messages/zod/de.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/messages/zod/de.json -------------------------------------------------------------------------------- /messages/zod/en.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/messages/zod/en.json -------------------------------------------------------------------------------- /middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/middleware.ts -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/next.config.mjs -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/package.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gcascio/next-intl-zod/HEAD/tsconfig.json --------------------------------------------------------------------------------