Replies: 3 comments 1 reply
-
I have the same question, I have functions that passes Isn't it possible to make the type of (I'm passing t as prop sometimes because I cannot access to useTranslations in a non react component but sometimes I need it, I have for example a function that returns error messages, so I need to access to the translation but I can't. :/ |
Beta Was this translation helpful? Give feedback.
-
MessageKey: Represents the type of the first argument (key) passed to the translation function. It extracts the valid keys from the specified namespace. with name space
|
Beta Was this translation helpful? Give feedback.
-
I found a solution that works both with and without a namespace set :)
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a component:
How to type t in Typescript?
I tried:
but it doesn't work
Beta Was this translation helpful? Give feedback.
All reactions