Replies: 2 comments 5 replies
-
Here how I i18n for oRPC without async input/output: https://github.com/unnoq/orpc-next-i18n-playground |
Beta Was this translation helpful? Give feedback.
5 replies
-
I will close this, because we can solve this problem by using v.lazyAsync or async local storage pattern. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
It would be nice to have support for async input/output. That would allow to handle such cases as dynamically creating a schema, for example, for using i18n messages.
I'm trying to migrate certain handlers from
next-safe-action
toorpc
. But I got stuck migrating schemas that require translations (i18n).next-safe-action
supports async input. And here is what my code currently looks like:However,
orpc
doesn't allow to pass an async callback toinput
/output
to dynamically create a schema.It would be nice to have similar API in
orpc
so we can handle such cases.Related discussions:
Beta Was this translation helpful? Give feedback.
All reactions