You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turbo doesn't seem to work with dynamically importing messages files. Basically it always loads the first file in the folder.
This is not a next-intl issue, but a Turbo issue instead. I am opening this thread with the goal of tracking the corresponding issues in the Turbo repository, and preventatively providing more information on this for future readers.
Update: I have found that finding Turbo issues on this is actually quite hard. @amannn have you seen any?
Description
Turbo doesn't seem to work with dynamically importing messages files. Basically it always loads the first file in the folder.
This is not a
next-intl
issue, but a Turbo issue instead. I am opening this thread with the goal of tracking the corresponding issues in the Turbo repository, and preventatively providing more information on this for future readers.Update: I have found that finding Turbo issues on this is actually quite hard. @amannn have you seen any?
Mandatory reproduction URL
https://github.com/markomitranic/dynamic-turbo-imports
Reproduction description
Read the repository Readme, it contains steps. In short:
npm run dev
- will show different languages on different localesnpm run turbo
- will show the contents of /messages/_notUsed.json which is not referenced to anywhere in the code.Expected behaviour
Should show different, and appropriate languages when using turbo.
The text was updated successfully, but these errors were encountered: