Skip to content

Commit

Permalink
Merge pull request #194 from maykon-oliveira/main
Browse files Browse the repository at this point in the history
chore: README update
  • Loading branch information
aiji42 authored Jan 26, 2024
2 parents 50f65c8 + 8d1e85d commit 4fb390b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ i18next.init({
});
z.setErrorMap(zodI18nMap);

// export configured zod instance
export { z }
```

Import wherever it's required

```ts
import { z } from "./es-zod";

const schema = z.string().email();
// Translated into Spanish (es)
schema.parse("foo"); // => correo inválido
Expand Down

1 comment on commit 4fb390b

@vercel
Copy link

@vercel vercel bot commented on 4fb390b Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zod-i18n – ./

zod-i18n-aiji42.vercel.app
zod-i18n.vercel.app
zod-i18n-git-main-aiji42.vercel.app

Please sign in to comment.