Replies: 1 comment
-
This is definitely supported. I'd consider having messages files per locale (e.g. Now, you can merge both files before passing them as a single
You might want to make sure that you're using a single copy of |
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
-
I have built a Nextjs webclient with next-intl. Now i want to extract some of the components to a common library to reuse them in another project. How can i use next-intl or use-intl in this library so that it integrates smoothly in the parent webapp?
As an example: I have a hook in the library that calls useTranslations(). If I use this hook in the Nextjs application, i get an error message that the NextIntlClientProvider is not found.. But the provider is in the webapp, calling useTranslations() directly in the webapp (and not via library) works.
Does anyone has experience with building a library with next-intl/use-intl?
Beta Was this translation helpful? Give feedback.
All reactions