-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where to introduce the next component in the configuration item, and where to import the translation file 'Next-i18next' referenced by the component #3151
Comments
One workaround is to handle it on the fly within the component:
|
Thank you very much for your reply and providing examples. However, what I want to say is that the project has already used Next-i18next as an internationalization plugin. For example, I have a navbar component that uses the translation capabilities provided by Next-i18next. However, I want to use the same component in Nextra, but obviously it is not possible now because the next page router needs to import translation files in getServerSideProps, which cannot be used in mdx in Nextra for example
in theme.config.jsx
But it cannot be used in this way now because the translation file cannot be loaded. What I want to ask is how to add the translation file |
How to handle the translation files in Next-i18next when importing custom components into Navvar and Sidebar in page router?
The text was updated successfully, but these errors were encountered: