Hello team!
We have recently updated our repository and started implemented the new nextjs prismic setup together with slice-machine and everything has worked as expected.
We have now however run into issues with getting mutiple locales to work in the project.
I have followed the guide Multilingual Templating with Next.js - Documentation - Prismic and looked at the example github repo but can't seem to get it to work as expected.
So when setting up a Language-switcher, firstly, the PrismicLink component complains about the locale prop, that it doesn't exists on the PrismicLink, which in the first place seems strange since that seems to be the way to pass locale?
Secondly, when pressing the language switcher to switch to another language, it adds the locale before the url to the page like. www.ourdomain.com/en-gb/test , instead of www.ourdomain.com/test/en-gb as it does in the example. The link resolver looks as it does in the example:
Any help and directions to be able to solve this issue would be greatly appreciated!
Best regards,
Seb