QuiiBz / next-international

Type-safe internationalization (i18n) for Next.js
https://next-international.vercel.app
MIT License
1.28k stars 59 forks source link

locales[locale] is not a function #276

Closed leonardoRocchini closed 11 months ago

leonardoRocchini commented 11 months ago

Describe the bug When I attempt to use "next-international" with a Next.js 14 app in the server component, the app returns the following error: "Error: locales[locale] is not a function.

To Reproduce Steps to reproduce the behavior: Use the basic example from CodeSandbox example

Screenshots Screenshot 2023-11-02 171406

About (please complete the following information):

QuiiBz commented 11 months ago

I'm not able to reproduce the issue using the link you provided, could you share a video?

7system7 commented 11 months ago

I have the same problem.

QuiiBz commented 11 months ago

See https://github.com/QuiiBz/next-international/issues/239 & https://github.com/QuiiBz/next-international/issues/193 - it's often due to a misconfiguration.

leonardoRocchini commented 11 months ago

Thank you, it seems that #193 has solved the problem.