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
I'm currently working on creating a blog website using Next.js, Strapi, and Next-Intl. I've attempted to implement a language switcher using Next-Intl and have placed it in the header. The content of my body is fetched from the Strapi API based on the URL.
The slug for the corresponding language is obtained from the page's API (server-side), and I'm wondering how to pass this retrieved slug to the language switcher.
I've tried using the information from the documentation's localized pathname section, but I've only been able to achieve getting the desired URL for the canonical tag.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I'm currently working on creating a blog website using Next.js, Strapi, and Next-Intl. I've attempted to implement a language switcher using Next-Intl and have placed it in the header. The content of my body is fetched from the Strapi API based on the URL.
The slug for the corresponding language is obtained from the page's API (server-side), and I'm wondering how to pass this retrieved slug to the language switcher.
I've tried using the information from the documentation's localized pathname section, but I've only been able to achieve getting the desired URL for the canonical tag.
Beta Was this translation helpful? Give feedback.
All reactions