Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gcascio/trpc-i18n-errors
https://github.com/gcascio/trpc-i18n-errors
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/gcascio/trpc-i18n-errors
- Owner: gcascio
- Created: 2024-03-16T15:22:20.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-16T15:22:40.000Z (8 months ago)
- Last Synced: 2024-05-29T22:47:02.361Z (5 months ago)
- Language: TypeScript
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tRPC i18n error example
This repository demonstrates an approach to handle localized error messages when using tRPC and accompanies a [blog post](https://www.gcasc.io/blog/trpc-i18n-errors).
## Stack
This project was bootstrapped with [create-t3-app](https://create.t3.gg/) and the following changes have been made:
- localization with [next-intl](https://github.com/amannn/next-intl)
- form handling with [react-hook-form](https://github.com/react-hook-form/react-hook-form)
- localized error messages