-
Hi, I am using typesafe-i18n with NextJS. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @IRediTOTO,
Then you would have the |
Beta Was this translation helpful? Give feedback.
-
@IRediTOTO you can checkout |
Beta Was this translation helpful? Give feedback.
Hi @IRediTOTO,
currently the generator only supports a single
adapter
option.But since the generated output doesn't change frequently, you could:
typesafe-i18n
with theadapter
option set to'node'
adapter
to'react'
and leave it like thisThen you would have the
i18n-node.ts
andi18n-react.tsx
file in your repo and you can use both at the same time.The
i18n-node.ts
file itself gets not updated, but it will read the type information from a shared file that gets updated also when using any other adapter.