Replies: 2 comments 1 reply
-
You can leverage ES6 syntax in your case. import nextTranslate from "next-translate"
export default nextTranslate(withMDX({
i18n: {
locales: ['en-US', 'cn'],
defaultLocale: 'en-US',
},
pageExtensions: ['js', 'jsx', 'md', 'mdx'],
})) |
Beta Was this translation helpful? Give feedback.
0 replies
-
I get the message "This expression is not callable. node_modules/next-translate/index")' has no call signatures." Anybody know what I can do? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello folks,
I am using next.config.mjs instead of next.config.js.
and I already have this :
how can I use next-translate in this case
thank you!
Beta Was this translation helpful? Give feedback.
All reactions