i18next / next-app-dir-i18next-example-ts

Next.js 13/14 app directory feature in combination with i18next
https://locize.com/blog/next-app-dir-i18n/
117 stars 29 forks source link

Example doesn't work with Turbopack #11

Closed gstrobl closed 3 months ago

gstrobl commented 3 months ago

🐛 Bug Report

If you want to run this solution with Turbopack, the i18n-next doesn't work. It always selects the the first language in the folder structure of the imports.

To Reproduce

A minimal reproducible example. A codesandbox example or similar or at least steps to reproduce the behavior:

next dev --turbo

Expected behavior

A clear and concise description of what you expected to happen.

// Paste the expected results here

Your Environment

adrai commented 3 months ago

don't know what you mean, I just updated this example and seems to work with turbo...

If you mean next-i18next => you may have a look at: https://github.com/i18next/next-i18next/issues/2222

gstrobl commented 3 months ago

https://github.com/i18next/next-app-dir-i18next-example-ts/assets/8993732/7860eac5-e6c1-4385-bb79-182bcb4f7555

On my machine it doesn't work, if I remove the turbo flag it's working.