-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
next-translate-plugin with @module-federation/nextjs-mf, useTranslation not working! #63
Comments
when i debugger, I found |
Thanks to report it. What version of next-translate and next-translate-plugin are you using? BTW; Do you know if this used to work before and has stopped working in the new versions? Thanks |
thanks your comment, i found that next-translate-plugin's template code didn't insert bundle. when work with federation import ${INTERNAL_CONFIG_KEY} from '@next-translate-root/i18n' |
"next-translate": "^2.5.0", |
here is the data of NEXT_DATA: looks like ok! BUT page shows the key words: mc_common_footer_about |
i debug the code,i get the resolutions:
when next-translate-plugin webpack loader build the code,
|
Any workaround for this? |
What version of this package are you using?
when i used next-translate-plugin with @module-federation/nextjs-mf, useTranslation not working! help
What operating system, Node.js, and npm version?
node v18.16.1
What happened?
when
module.exports = nextTranslate();
works fine!when
import useTranslation from 'next-translate/useTranslation'
t('mc_common_footer_about')
render: mc_common_footer_about
What did you expect to happen?
translation words~~
Are you willing to submit a pull request to fix this bug?
The text was updated successfully, but these errors were encountered: