Switching the language in NextJS using Prismic


I set up 2 different langs in my Prisimic repository:

  1. English
  2. French

I am using Prismic to support my NextJS app, where i18n is build-in option. I was able to create in Next language switcher, which works on URL, but how can I actually switch between languages / how to query them from prismic ? The documentation is really poor in this topic and this is the first time I joined Prismic.

Hi Petra,

Welcome to the community!

You can check out our Next.js multi-language sample which does everything which you've described:

As for the documentation, we are working on adding more multi-language information at the moment. So it should be easier very soon.

Let me know if you have any questions.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.