Replies: 1 comment 4 replies
-
read https://lingui.dev/tutorials/react#macros-vs-components Everything work perfectly with nextjs and typescript and any other technology. It battle tested in production for years. If it doesn't work in your case - look for the issue in your app code. Probably you're trying to put some dynamic expression or variable instead of a message. Hard to say without looking at your code. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I ended up switching to
i18n._
function instead.What is t macro for anyway?
I found that
i18n._
is doing exactly the same thing, and it works in Next.js with Typescript.EDIT:
Just found out using
i18n._
wouldn't extract language keys intopo
file. When doinglingui extract
it would give me this error if I don't uset
macro:Beta Was this translation helpful? Give feedback.
All reactions