Hi @damian.connolly, thank you for providing lots of details. ![]()
Could you take a look at this thread and give the recommended solution a try?
Our i18n documentation and start is out dated as we did not decide on a final direction internally, but what is described in that thread can be used today.
Notably, you can make the following changes to your setup:
- Remove the
i18nproperty and the local-related lines fromnext.config.js. Thei18nproperty is designed for the Pages Router, which your website does not seem to use. - Remove the
createClient()andclient.getRepository()lines frommiddleware.ts. Fetching a repository's locale in middleware will cause every page to be delayed by ~300 ms, which should be avoided if possible.
I hope that helps! We are aware that we need to update our i18n and clarify the setup.