{"id":19472362,"url":"https://github.com/aboutbits/zod-locales-formatjs","last_synced_at":"2025-11-19T02:03:41.692Z","repository":{"id":65877387,"uuid":"601051022","full_name":"aboutbits/zod-locales-formatjs","owner":"aboutbits","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-11T05:49:15.000Z","size":571,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-02T06:53:24.218Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aboutbits.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-13T09:06:26.000Z","updated_at":"2025-09-11T05:49:18.000Z","dependencies_parsed_at":"2025-09-02T08:09:43.306Z","dependency_job_id":"a5238892-5ca7-4516-917e-2fd97ab4321e","html_url":"https://github.com/aboutbits/zod-locales-formatjs","commit_stats":{"total_commits":14,"total_committers":3,"mean_commits":4.666666666666667,"dds":0.1428571428571429,"last_synced_commit":"c2fcc3675ee03e3013be40d20518b1fb047648a4"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/aboutbits/zod-locales-formatjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutbits%2Fzod-locales-formatjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutbits%2Fzod-locales-formatjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutbits%2Fzod-locales-formatjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutbits%2Fzod-locales-formatjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aboutbits","download_url":"https://codeload.github.com/aboutbits/zod-locales-formatjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboutbits%2Fzod-locales-formatjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285170109,"owners_count":27126456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-19T02:00:05.673Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T19:14:12.999Z","updated_at":"2025-11-19T02:03:41.688Z","avatar_url":"https://github.com/aboutbits.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Custom Zod Locales for FormatJS\n===============================\n\n[![npm version](https://badge.fury.io/js/%40aboutbits%2Fzod-locales-formatjs.svg)](https://badge.fury.io/js/%40aboutbits%2Fzod-locales-formatjs)\n\nThis package provides simplified translations for Zod error messages.\nIt contains translations for German and Italian.\n\n## Table of content\n\n- [Usage](#usage)\n- [Build \u0026 Publish](#build--publish)\n- [Information](#information)\n\n## Usage\n\nFirst you need to install the package:\n\n```bash\nnpm install @aboutbits/zod-locales-formatjs\n```\n\nSecond, add the custom language packages to your `IntlProvider`:\n\n```js\nimport { de } from '@aboutbits/zod-locales-formatjs'\nimport { IntlProvider } from 'react-intl'\n\n\u003cIntlProvider messages={{...yourMessages, ...de }} {...}\u003e{children}\u003c/IntlProvider\u003e\n\n```\n\nFinally, configure `Zod` to use the new translations. The following helpers can be used with `React`. They require the `react-intl` package to be installed.\n\n```js\nimport { useZodInternationalizationWithReactIntl } from '@aboutbits/zod-locales-formatjs/react-intl'\n\nuseZodInternationalizationWithReactIntl()\n```\n\nor\n\n```js\nimport { ZodInternationalizationWithReactIntl } from '@aboutbits/zod-locales-formatjs/react-intl'\n\n\u003cZodInternationalizationWithReactIntl /\u003e\n```\n\nIf you don't use `React`, you can set the `ZodErrorMap` manually with:\n\n```js\nimport { setZodErrorMap } from '@aboutbits/zod-locales-formatjs'\n\nsetZodErrorMap(intl)\n```\n\n## Build \u0026 Publish\n\nTo build and publish the package, visit the GitHub Actions page of the repository.\n\nYou can choose between two workflows:\n- `Release Package` to publish a new version of the package.\n- `Pre-Release Package` to publish a new pre-release version of the package.\n\n**Note:** Pre-releases need to be supplied with a pre-id.\n\n**Note:** To increment a pre-release, you have to run the normal release workflow and select \"prerelease\". For this action you need to already be on a pre-release version.\n\n## Information\n\nAbout Bits is a company based in South Tyrol, Italy. You can find more information about us on [our website](https://aboutbits.it).\n\n### Support\n\nFor support, please contact [info@aboutbits.it](mailto:info@aboutbits.it).\n\n### Credits\n\n- [All Contributors](../../contributors)\n\n### License\n\nThe MIT License (MIT). Please see the [license file](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutbits%2Fzod-locales-formatjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faboutbits%2Fzod-locales-formatjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboutbits%2Fzod-locales-formatjs/lists"}